当我安装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
我已经尝试解决了这个问题,但是失败了。
http://flummox-engineering.blogspot.com/2014/04/libtool-unrecocoized-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
。
和。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句