2012-01-23 46 views
0

我在Mac OS Lion上使用rvm安裝Ruby 1.9.2時遇到問題。爲什麼我在Mac OS Lion上用RVM編譯Ruby 1.9.2有困難?

它陷入編輯階段;我沒有看到任何錯誤或輸出,但會在編制消息中持續幾小時。 miniruby進程仍在運行,並使用相當多的CPU,但它只是永遠不會結束。

我可以在日誌中找到的唯一的事情是這樣的消息在make.log

<internal:prelude>:1: [BUG] Segmentation fault 

任何想法如何,我能得到這個編譯?

回答

0

它可能與Lion試圖使用llvm編譯而不是gcc相關。嘗試運行像這樣的命令CC=/usr/bin/gcc-4.2 rvm install 1.9.2以使用gcc。基於這個答案的其他信息

Why can't I install Rails on Lion using RVM?

3

您正在使用什麼版本的Xcode?

rvm requirements有這個小珍聞:

 
** Lion Users: Xcode Version 4.2.x for OS X Lion works only for ruby 1.9.3-p0 (or higher). 
       It currently fails to build several other rubies and gems, as well as several Homebrew and 
       Macports packages. Xcode Version 4.1 (4B110) works. 

的Xcode 4.1版是:https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg

這一點也很重要,以確保您的RVM是最新的。運行rvm get head以升級到最新版本。

相關問題