您的位置:首页 > 其它

mac 安装erlang 错误 原因:更新了xcode

2015-11-16 21:07 393 查看
1.checking for C compiler default output file name...
configure: error: C compiler cannot create executables

看到这个很容易让人怀疑是编译器出错,也就是gcc 或者是g++.

查看log发现

xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer/") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify
the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)

这才是真正原因xcode没指定好。

解决办法就是:将Xcode的路径,重新设置一下。

sudo xcode-select --switch “Xcode的path,直接在应用程序里面找到Xcode,拖拽到这里”

完美解决
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: