【问题标题】:valgrind/yosemite installation fails "configure"; clang not recognizedvalgrind/yosemite 安装失败“配置”;铿锵声不认
【发布时间】:2015-11-21 06:02:51
【问题描述】:

先前的 valgrind 安装成功但被删除(通过找到每个“valgrind”目录的“rm -rf”)。现在重新安装在“./configure --prefix=/usr/local”步骤失败,并带有以下错误信息:

".. 检查 diff -u... 是 检查受支持的 gcc 版本... 配置为:--prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 配置: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 没有(6.1.0) 配置:错误:请使用 gcc >= 3.0 或 clang >= 2.9 或 icc >= 13.0 Richards-MacBook-Air:valgrind richardcramer$"

下面是编译情况:

"Richards-MacBook-Air:usr richardcramer$ clang --version Apple LLVM 版本 6.1.0 (clang-602.0.53)(基于 LLVM 3.6.0svn) 目标:x86_64-apple-darwin14.1.0 线程模型:posix 理查兹-MacBook-Air:usr richardcramer$"

【问题讨论】:

    标签: valgrind configure clang++ osx-yosemite


    【解决方案1】:

    如果您已经确保您拥有来自 SVN 的最新 Valgrind 副本,那么您可能需要运行以下命令集来重建配置脚本:

    # Only if you haven't downloaded the latest SVN trunk of Valgrind
    #
    # svn co svn://svn.valgrind.org/valgrind/trunk valgrind
    # cd valgrind
    
    ./autogen.sh
    ./configure --prefix=/usr/local  # Per your chosen configure option
    make -j2
    sudo make install
    

    目前在现代 OS X 上,Valgrind 的预发布版本是提供最佳结果的必要条件。

    一旦 Valgrind 3.11.x 发布,您应该能够返回打包版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-03
      • 2016-10-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-08
      • 2012-07-08
      • 1970-01-01
      相关资源
      最近更新 更多