2012-06-18 112 views
0
/usr/bin/gcc-4.2 -dynamic -bundle -o ../../.ext/x86_64-darwin11.3.0/tcltklib.bundle 
stubs.o tcltklib.o -L. -L../.. -L/Users/jasonvdm/.rvm/usr/lib - L/System/Library/Frameworks/Tcl.framework -L/System/Library/Frameworks/Tk.framework -L. -L/usr/local/lib -lpthread -framework CoreFoundation -F/System/Library/Frameworks -framework Tcl -lpthread -framework CoreFoundation -framework Cocoa -framework Carbon -framework IOKit -lpthread -framework CoreFoundation -F/System/Library/Frameworks -framework Tk -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -lruby.1.9.1 -lm -ldl -lpthread -ldl -lobjc 
ld: in /usr/local/lib/libxml2.2.dylib, file was built for unsupported file format which is not  the architecture being linked (x86_64) for architecture x86_64 
collect2: ld returned 1 exit status 
make[1]: *** [../../.ext/x86_64-darwin11.3.0/tcltklib.bundle] Error 1 
make: *** [mkmain.sh] Error 1 

我得到一個讓錯誤:使錯誤而安裝Ruby 1.9.2-180

Error running 'make', please read /Users/jasonvdm/.rvm/log/ruby-1.9.2-p320/make.log 
There has been an error while running make. Halting the installation. 

這是P180相同。我已經安裝了readline和一切。我試圖安裝1.9.3,有類似的錯誤。我試過用clang和readline標誌安裝,沒有任何工作。

看來,這是我的主要錯誤:

ld: in /usr/local/lib/libxslt.1.dylib, file was built for unsupported file format which 
is not the architecture being linked (x86_64) for architecture x86_64 
+0

我認爲你需要重建的libxslt。 – Dre

+0

是的,我重建了三個庫,它工作了 –

回答

0

您使用的OSX?
您可以嘗試使用:

rvm install ruby-1.9.2-p320 --with-gcc=clang 

或者:

CC=/usr/local/bin/gcc-4.2 rvm install ruby-1.9.2-p320 
+0

我使用的是OSX。我已經嘗試過叮噹聲(我正在安裝p180,而不是p320),並沒有奏效。 –

+0

第二個選項不起作用,因爲該目錄不在我的路徑 –

+0

您是否安裝了macports?如果你已經用macports安裝了OpenSSL,你可能會遇到一些問題。 – squiter