2012-08-01 39 views
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)

這是我的日誌:

http://pastebin.com/FVLsxZ6P

有問題的錯誤(如果你不不想點擊鏈接),假設:

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。

回答

0
ld: in /usr/local/lib/libz.1.dylib, file was built for unsupported file format 

看起來像你的問題是與libz,而不是gcc/readline。更新你的libz庫。

+0

我該如何去做呢?當我閱讀libz lib時,我也大聲笑了起來。 – Errorsum 2012-08-01 19:00:49

+0

它的工作!謝謝! – Errorsum 2012-08-01 19:27:20

相關問題