【问题标题】:xcrun: error: developer tools not installed error during valgrind installationxcrun:错误:valgrind 安装期间未安装开发人员工具错误
【发布时间】:2013-03-29 05:30:47
【问题描述】:

我正在尝试在我的 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(来自此链接:How can I fix this valgrind OS X 10.7.4 make error?)并收到此消息:

-bash: xcode-select: command not found

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

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

谢谢。

【问题讨论】:

  • 好的。我在安装 Xcode 3.2.1 后解决了这个问题,然后将其更新到 Xcode 3.2.6。 T

标签: c xcode macos installation valgrind


【解决方案1】:

您现在可以通过 Xcode 查看应用商店(免费下载)。其特点是它会通知您更新。我认为到今天为止它已经达到了 4.6.1 左右,所以你所看到的已经很老了。

valgrind 的另一种选择是获取 homebrew,一旦它启动并运行,只需执行 brew install valgrind。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-17
    相关资源
    最近更新 更多