我试图在macOS Sierra上安装valgrind(版本10.12.6)。在运行./configure.sh时,出现此错误:在OS X上构建valgrind
checking for a supported version of gcc... Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 no (applellvm-8.1.0) configure: error: please use gcc >= 3.0 or clang >= 2.9 or icc >= 13.0
所以,我检查了我的gcc和clang版本。这些答复如下:
Ankits-MacBook-Air:valgrind ankitshubham$
gcc --versionConfigured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin16.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Ankits-MacBook-Air:valgrind ankitshubham$
clang --versionApple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin16.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
我不知道如何检查,如果ICC> = 13.0
这里有什么问题?
确实如此。其实我正在关注一个网页教程,其中安装valgrind是其中一个步骤,他们以老式的方式做到了这一点。 –
是的,使用例如Homebrew是别人已经解决了所有的配置/构建/安装问题,并将它们放入脚本中。 –
这对高级Sierra不起作用:“valgrind:由于上游不兼容性,此公式或者未按照预期在macOS 版本上编译或运行, 错误:未满足的需求未能通过此构建。 – tzachs