0
我试图在我的Mountain Lion上使用Jewellery Box安装Ruby 1.9.3尽管)使用终端。每次我编译安装时,都会收到错误消息:“错误正在运行make -j4”并且珠宝盒中止。我的XCode,的ReadLine,和gcc,当前版本是的,我曾尝试与锵:)编译无法在Mountain Lion w/Jewlery Box上安装Ruby 1.9.3:运行make -j4时出现错误(有当前readline,gcc)
这是我的日志:
有问题的错误(如果你不不想点击链接),假设:
ld: in /usr/local/lib/libz.1.dylib, file was built for unsupported file format (0xce 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 0 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0) which is not the architecture being linked (x86_64): /usr/local/lib/libz.1.dylib for architecture x86_64
ld: in /usr/local/lib/libz.1.dylib, file was built for unsupported file format (0xce 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 0 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0) which is not the architecture being linked (x86_64): /usr/local/lib/libz.1.dylib for architecture x86_64
ld: in /usr/local/lib/libz.1.dylib, file was built for unsupported file format (0xce 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 0 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0) which is not the architecture being linked (x86_64): /usr/local/lib/libz.1.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../../.ext/x86_64-darwin12.0.0/digest/md5.bundle] Error 1
make[2]: *** [../../../.ext/x86_64-darwin12.0.0/digest/sha2.bundle] Error 1
make[2]: make[1]: *** [../../../.ext/x86_64-darwin12.0.0/digest/sha1.bundle] Error 1*** [ext/digest/md5/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [ext/digest/sha2/all] Error 2
make[1]: *** [ext/digest/sha1/all] Error 2
installing default rmd160 libraries
ld: in /usr/local/lib/libz.1.dylib, file was built for unsupported file format (0xce 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 0 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0) which is not the architecture being linked (x86_64): /usr/local/lib/libz.1.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../../.ext/x86_64-darwin12.0.0/digest/rmd160.bundle] Error 1
make[1]: *** [ext/digest/rmd160/all] Error 2
make: *** [build-ext] Error 2
感谢您的帮助!再次,我有GCC V 4.2.1,当前版本的READLINE,和当前版本的XCODE。
我该如何去做呢?当我阅读libz lib时,我也大声笑了起来。 – Errorsum 2012-08-01 19:00:49
它的工作!谢谢! – Errorsum 2012-08-01 19:27:20