macos - 在 Mac OS X Catalina 上安装 valgrind
问题描述
我在新更新的 Mac OS X Catalina 上安装 Valgrind 时遇到问题。
当我尝试得到这个错误
brew install valgrind
valgrind: This formula either does not compile or function as expected on macOS
versions newer than High Sierra due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.
然后在将 HEAD url 更改为url "git://sourceware.org/git/valgrind.git"
AND 并尝试通过安装它之后
brew install --HEAD valgrind
==> Cloning git://sourceware.org/git/valgrind.git
Updating /xxxx/Caches/Homebrew/valgrind--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 2d040ce2c arm: Hook up preadv2 and pwritev2 syscalls.
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/valgrind/HEAD-2d040ce --enable-only64bit --build=amd64-darwin
Last 15 lines from /xxx/Homebrew/valgrind/02.configure:
checking for gcc-ar... no
checking for perl... /usr/bin/perl
checking for gdb... /no/gdb/was/found/at/configure/time
checking dependency style of clang... none
checking for diff -u... yes
checking for clang option to accept ISO C99... none needed
checking for a supported version of gcc... ok (clang-11.0.0)
checking build system type... x86_64-pc-darwin
checking host system type... x86_64-pc-darwin
checking for a supported CPU... ok (x86_64)
checking for a 64-bit only build... yes
checking for a 32-bit only build... no
checking for a supported OS... ok (darwin)
checking for the kernel version... unsupported (19.2.0)
configure: error: Valgrind works on Darwin 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x and 17.x (Mac OS X 10.6/7/8/9/10/11 and macOS 10.12/13)
而且它们都不起作用。任何帮助表示赞赏。
解决方案
推荐阅读
- python-3.x - 如何对两个链接的数据框使用应用/自定义函数,并对列施加条件
- python - 如何使用 Tensorflow LSTM 获得预测的未来跟随值?
- node.js - nodejs在2个不同的文件夹中上传2张单张图片
- java - Target 不是 JDK 根目录。找不到 Java 可执行文件 jdk 13.0.2 eclipse 2019
- continuous-integration - Bamboo Java 规范、单一管道存储库和多个项目
- windows - 列表框:WM_CHAR 搜索项的时间间隔
- amazon-web-services - 在运行时找不到 AWS Java SDK
- python - 如何对 CSV 文件中的多个列进行分组和求和?
- c++ - OpenCV 库无法读取 .mp4 视频文件来创建 VideoCapture 对象
- php - 如何在 Laravel 中将部门显示为节点