我試圖建立RVM使用Ruby 1.9.3-P0,當我運行C編譯器錯誤獅和新安裝/ Xcode更新
$rvm install 1.9.3
我得到:
ERROR: Error running ' ./configure --prefix=/Users/zkidd/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/zkidd/.rvm/usr ', please read /Users/zkidd/.rvm/log/ruby-1.9.3-p0/configure.log ERROR: There has been an error while running configure. Halting the installation.
而且然後當我在TextMate中打開configure.log我看到:
[2011-12-31 16:43:59] ./configure --prefix=/Users/zkidd/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/zkidd/.rvm/usr configure: WARNING: unrecognized options: --with-libyaml-dir checking build system type... x86_64-apple-darwin11.2.0 checking host system type... x86_64-apple-darwin11.2.0 checking target system type... x86_64-apple-darwin11.2.0 checking whether the C compiler works... no configure: error: in
/Users/zkidd/.rvm/src/ruby-1.9.3-p0': configure: error: C compiler cannot create executables See
config.log' for more details
我不知道下一步該這裏做:/我重新安裝了Xcode和Mac OS是更新日期。另外,我只是新安裝了RVM,它工作正常。任何指導將不勝感激。謝謝。
我修復了我的權限 - 很多都被破壞了。但再次嘗試後,它仍然無法工作。我需要刪除你認爲的紅寶石嗎? – zkidd 2012-01-01 02:44:20
不能傷害...當你刪除它,請務必刪除我上面提到的那兩個文件夾。這對我以前的版本 – tophersmith116 2012-01-01 03:03:00
好。 。 。如此跛腳/基本的問題。我應該如何刪除?我的意思是,我認爲使用RVM是因爲你不必刪除Ruby。你能告訴我輸入終端的路線,因爲我已經運行了RVM嗎? – zkidd 2012-01-01 03:08:32