2012-09-29 252 views
1

所以我想安裝RVM,但我認爲在我的Mac電腦上與Xcode有衝突。我用來運行rvm install ruby-1.9.2-p320 ,這是我的錯誤 所提供的編譯器安裝rvm時遇到的問題

'/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`. 

我然後讀的解決方案寫rvm get head及其成功,但是當我運行RVM重新安裝紅寶石1.9.2-P320,我得到這個錯誤。

No binary rubies available for: ///ruby-1.9.2-p320. 
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. 
The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`. 
'rvm_codesign_identity' is not set, please set it in ~/.rvmrc 
+0

whats ur xcode version? – uday

+0

我的Xcode版本是4.3.2 –

+0

http://caiustheory.com/install-gcc-421-apple-build-56663-with-xcode-42 –

回答

3

嘗試rvm install 1.9.2 --with-gcc=clang的答案,因爲這裏說明https://stackoverflow.com/a/8032980/429758

+0

我運行了rvm install 1.9.2 --with-gcc = clang,它告訴我重新安裝rvm重新安裝1.9.3,因爲我已經安裝了ruby-1.9.3-p194。我運行它得到一個錯誤,在重新安裝結束時說'Error running'', 請閱讀/ Users/connorphillips/.rvm/log/ruby​​-1.9.3-p194/gemset.pristine.log' –

+0

我試圖運行1.9.2的原因是因爲我覺得他們可能是1.9.3的bug。我運行rake時發現mysql2文件沒有找到錯誤,我認爲運行rvm 1.9.2可能會修復該錯誤 –

+0

要求您重新安裝1.9.3的消息很可能是無關緊要的問題,因爲在rvm下安裝ruby版本是獨立的彼此的。 gemset.pristine.log中是否有任何內容?至於mysql的錯誤,請檢查這一個:http://stackoverflow.com/questions/4546698/library-not-loaded-libmysqlclient-16-dylib-error-when-trying-to-run-rails-serv/6100648# 6100648&http://stackoverflow.com/questions/8437455/rake-dbmigrate-mysql這可能是你面對的同樣的問題。 –

1
'/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`. 

見:

, please read `rvm requirements`. 

使用: $ RVM要求

並安裝你需要wthat。對於Ruby或JRuby ....