当我安装 LLVM 时,发生错误:
? build make
[ 0%] Linking CXX static library ../libLLVMSupport.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make[2]: *** [lib/libLLVMSupport.a] Error 1
make[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make: *** [all] Error 2
? build which libtool
/usr/local/bin/libtool
Run Code Online (Sandbox Code Playgroud)
我已经尝试解决它,但失败了。
http://flummox-engineering.blogspot.com/2014/04/libtool-unrecognized-option-static.html
我这样解决了这个问题:将我的 PATH 更改~/.bash_profile为export PATH="/Library/Developer/CommandLineTools/usr/bin:$PATH,打开一个新终端并再次运行安装过程。将libtool在/ Library /开发商/ CommandLineTools在/ usr / bin中没有抱怨的-static标志,一切运作良好。您稍后可以/Library/Developer/CommandLineTools/usr/bin从您的$PATH.
Z。