简体   繁体   English

与自制软件一起安装时,cmake无法生成

[英]cmake not building when installed with homebrew

I'm trying to install cmake with homebrew using brew install cmake , but it is throwing an error that I do not understand. 我正在尝试使用brew install cmake安装带有自制brew install cmake ,但是它抛出了一个我不理解的错误。

here's some of the log 这是一些日志

[ 99%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestCVS.cxx.o
[ 99%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSVN.cxx.o
[100%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestBZR.cxx.o
[100%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGIT.cxx.o
[100%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestHG.cxx.o
[100%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestP4.cxx.o
Linking CXX static library libCTestLib.a
[100%] Built target CTestLib
make: *** [all] Error 2
Error: cmake 3.0.1 did not build

Any ideas? 有任何想法吗? I'm on osx yosemite beta 5. 我正在使用osx优胜美地beta 5。

You appear to have a 32-bit-only zlib installed to /usr/local? 您似乎在/ usr / local中安装了仅32位的zlib?

The fatal error is here: https://gist.github.com/anonymous/0351796569dfc6e8d4f4#file-02-make-L373 致命错误在这里: https : //gist.github.com/anonymous/0351796569dfc6e8d4f4#file-02-make-L373

lipo -info /usr/local/lib/libz.1.2.5.dylib will confirm the diagnosis if you don't see "x86_64" in the output. 如果您在输出中没有看到“ x86_64”,那么lipo -info /usr/local/lib/libz.1.2.5.dylib将确认诊断。 (Compare to lipo -info /usr/lib/libz.dylib , which should give you "x86_64 i386".) The quickest answer is to delete /usr/local/lib/libz.1.2.5.dylib and /usr/local/lib/libz.a unless you're sure you have a good reason to have them there. (与lipo -info /usr/lib/libz.dylib ,应该为您提供“ x86_64 i386”。)最快的答案是删除/usr/local/lib/libz.1.2.5.dylib和/ usr / local /lib/libz.a,除非您确定有充分的理由将其放在此处。

(Beyond that, your brew doctor output is a little scary. Running brew prune will safely get rid of a lot of broken symlinks. You have a lot of other libraries installed to /usr/local that will conflict with things Homebrew might install later or mask system libraries, like the problem you're having with zlib here.) (除此之外,您的brew doctor输出有些令人恐惧。运行brew prune可以安全摆脱很多损坏的符号链接。您在/usr/local中安装了许多其他库,这些库可能与Homebrew以后安装或屏蔽系统库,例如您在zlib中遇到的问题。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM