1
我想在Mac OSX 10.6上安裝Ruby 1.9.3。我已經安裝好了10.8.7。在StackOverflow中已經有一堆這些主題,但它們的修復程序還沒有工作。 下面介紹一下終端打印出:爲什麼在Mac OSX 10.6上使用RVM安裝Ruby 1.9.3時,「文件不是必需的體系結構」?
Installing Ruby from source to: /Users/cavan/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #fetching
ruby-1.9.3-p194 - #extracted to /Users/cavan/.rvm/src/ruby-1.9.3-p194 (already extracted)
ruby-1.9.3-p194 - #configuring
ruby-1.9.3-p194 - #compiling
Error running 'make ', please read /Users/cavan/.rvm/log/ruby-1.9.3-p194/make.log
There has been an error while running make. Halting the installation.
而這裏的記錄它的請求的錯誤部分:
linking shared-object digest/md5.bundle
compiling rmd160init.c
ld: in /usr/local/lib/libz.1.dylib, file is not of required architecture
collect2: ld returned 1 exit status
make[2]: *** [../../../.ext/x86_64-darwin10.7.0/digest/md5.bundle] Error 1
make[1]: *** [ext/digest/md5/all] Error 2
make[1]: *** Waiting for unfinished jobs....
compiling rmd160ossl.c
installing default rmd160 libraries
linking shared-object digest/rmd160.bundle
ld: in /usr/local/lib/libz.1.dylib, file is not of required architecture
collect2: ld returned 1 exit status
make[2]: *** [../../../.ext/x86_64-darwin10.7.0/digest/rmd160.bundle] Error 1
make[1]: *** [ext/digest/rmd160/all] Error 2
make: *** [build-ext] Error 2
我認爲它與「文件做的是不是必需的結構信息。 「我的電腦配備10.6和64位。
什麼'文件在/ usr/local/lib目錄/ libz.1.dylib'的輸出? –
它沒有打開或運行。 「發生意外錯誤(錯誤代碼-43)。」我認爲這意味着與xcode有關的問題。 – Rockyroadster
問題肯定是該文件。你應該找出它的安裝方式(不是我認爲的Xcode,因爲它不在我的機器上,最新的Xcode),可能只是刪除它。由於它已經附帶OS X AFAIK,Ruby不需要它進行編譯。 –