私はmacOS Sierra(バージョン10.12.6)にvalgrindをインストールしようとしていました。 ./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のバージョンを確認しました。次のように応答は以下のとおりです。私はICCかどうかを確認する方法がわからない
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
> = 13.0
はここに何が間違っているのですか?
本当にTrueです。実際に私はvalgrindのインストールがステップの1つであり、彼らは昔のやり方でそれをしたWebチュートリアルに従っていました。 –
はい、使用例の美しさHomebrewは誰か他の人があなたのためにconfigure/build/installの問題をすべて解決してスクリプトに入れているということです。 –
これはHigh Sierraでは機能しません: "valgrind:この式は、MacOSでコンパイルまたは機能しません。 エラー:このビルドには不満な要求が失敗しました。 – tzachs