2011-08-23 192 views
0

安裝Snow Leopard(OS X 10.6)後,我的一些Ruby gems停止工作。我還安裝了Xcode(獲得make),並在安裝ruby-1.8.7-p334rvm時出現以下錯誤。運行Leopard時,我能夠成功安裝它。任何幫助,將不勝感激。在Snow Leopard上用`rvm`安裝`ruby-1.8.7-p334`時出現錯誤

Macintosh:haloror patelc75$ rvm install ruby-1.8.7-p334 

Installing Ruby from source to: /Users/patelc75/.rvm/rubies/ruby-1.8.7-p334, this may take a while depending on your cpu(s)... 
ruby-1.8.7-p334 - #fetching 
ruby-1.8.7-p334 - #extracted to /Users/patelc75/.rvm/src/ruby-1.8.7-p334 (already extracted) 
ruby-1.8.7-p334 - #configuring 
ruby-1.8.7-p334 - #compiling 
ERROR: Error running 'make ', please read /Users/patelc75/.rvm/log/ruby-1.8.7-p334/make.log 
ERROR: There has been an error while running make. Halting the installation. 

Macintosh:haloror patelc75$ more /Users/patelc75/.rvm/log/ruby-1.8.7-p334/make.log 

[2011-08-23 17:21:55] make 
gcc -g -O2 -fno-common -pipe -fno-common -DRUBY_EXPORT -L. main.o dmydln.o libruby-static.a -ldl -lobjc -o miniruby 
Undefined symbols: 
"_Init_ext", referenced from: 
    _require_libraries in libruby-static.a(ruby.o) 
ld: symbol(s) not found 
collect2: ld returned 1 exit status 
make: *** [miniruby] Error 1 
+0

你嘗試過的1.8.7其他PATCHLEVEL?例如ruby-1.8.7-p352? –

回答

7

請查閱/Users/patelc75/.rvm/log/ruby-1.8.7-p334/make.log readline的日誌文件可能是問題的大部分時間。要解決這個問題,請做

rvm pkg install readline

之前

你可能想要做

rvm remove 1.8.7
rvm cleanup

+1

謝謝,拉姆!這工作:rvm pkg install readline; rvm清理所有; rvm install ruby​​-1.8.7-p334 –

相關問題