C - xrun: error:安装valgrind时出现developer tools not installed错误



我正在尝试在我的Mac(10.6.8)上安装valgrind。我已经下载了最新的valgrind版本,valgrind-3.8.1,解压缩它,./configure工作正常。当我尝试make时,得到这个错误消息:

xcrun: error: developer tools not installed; download from http://developer.apple.com
/usr/bin/mig: line 174: : command not found
mig: fatal: "<no name yet>", line -1: no SubSystem declaration
make[2]: *** [m_mach/mach_vmUser.c] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

我尝试了xcode-select(从这个链接:我如何修复这个valgrind OS X 10.7.4犯错误?)并得到了这个消息:

-bash: xcode-select: command not found

我想我没有xcode或xcode开发工具,我在苹果开发者网站上找到了xcode 3.2和xcode 3.2.1开发工具。我想知道我应该安装哪一个?

我的感觉是这个安装将解决这个问题。

谢谢。

你现在可以得到Xcode查看应用商店(免费下载)。这个功能的特点是,它会通知你的更新。我想今天应该是4.6.1左右,所以你看到的是相当老的版本。

valgrind的另一种选择是获得homebrew,只要在它启动并运行后执行brew安装valgrind。

相关内容

最新更新