我正在尝试将OS上的svn从1.7.x升级到1.8.x。
我遵循这篇文章http://samoldak.com/updating-to-svn-1-8-for-mac-os-x-10-8/的指示
当我在做
cd serf/
./configure它显示了
检查gcc..。/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc检查C编译器是否工作..。不是
但是它似乎不适用于最新的Xcode环境。
编译器路径应该是
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
但是农奴配置试图在错误的路径上找到它。
如何进行配置以使其找到正确的编译器路径?
发布于 2014-05-26 07:55:05
有两种解决办法:
export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
export CPP='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -E'cd /Applications/Xcode.app/Contents/Developer/Toolchains/
ln -s XcodeDefault.xctoolchain OSX10.9.xctoolchain提出了第二种解决方案,可以节省大量的时间来解决后续出现的类似问题。
https://stackoverflow.com/questions/23863612
复制相似问题