Unable to install Ruby 1.9.3 on Mountain Lion w / Jewlery Box: Launch make -j4 failed (there is current readline, gcc)

I am trying to install Ruby 1.9.3 on my Mountain Lion equipped with MBP using Jewery Box (can use terminal though). Each time I compile the installation, I get an error: "Make -j4 runtime error" and "Jewelry box" are interrupted. I have current versions of Xcode, Readline, and gcc, and yes, I tried compiling with Clang :)

Here is my journal:

http://pastebin.com/FVLsxZ6P

Errors in question (if you do not want to click on the link), presumably:

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 

Thank you for your help! Again, I have GCC V 4.2.1, THE CURRENT READ VERSION AND THE CURRENT XCODE VERSION.

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

It looks like your problem is with libz and not with gcc / readline. Update libz lib.

0
source

Source: https://habr.com/ru/post/1432846/


All Articles