2013-04-11 46 views
2

我越來越安裝RVM錯誤安裝RVM收到錯誤,我已經安裝了Ruby 2.0.0與釀造的,現在我想在http://www.rvm.io與配置

Error running './configure --prefix=/Users/name/.rvm/rubies/ruby-2.0.0-p0 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libxml2:/usr/local/opt/libxslt:/usr/local/opt/libksba:/usr/local/opt/openssl:/usr/local/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared', 
please read /Users/name/.rvm/log/ruby-2.0.0-p0/configure.log 
There has been an error while running configure. Halting the installation. 

運行RVM命令這是我的日誌看起來像

[2013-04-10 21:50:21] ./configure 
configure: WARNING: unrecognized options: --without-tcl, --without-tk 
checking build system type... i386-apple-darwin12.3.0 
checking host system type... i386-apple-darwin12.3.0 
checking target system type... i386-apple-darwin12.3.0 
checking for gcc-4.2... no 
checking for clang... no 
checking for gcc... no 
checking for cc... no 
checking for gcc... no 
checking for cc... no 
checking for cl.exe... no 
configure: error: in `/Users/name/.rvm/src/ruby-2.0.0-p0': 
configure: error: no acceptable C compiler found in $PATH 
See `config.log' for more details 

我也安裝了Xcode。

+0

通常你使用RVM來安裝ruby,有沒有一個原因是你首先通過自制軟件安裝它? – 2013-04-11 05:07:38

+1

您是否安裝了命令工具? – fmendez 2013-04-11 05:07:43

+0

@DanFairaizl嗯,這是因爲我在紅寶石網站上看到它可以用來安裝mac osx。 – hellomello 2013-04-11 05:08:36

回答

5

您是否安裝了Xcode?然後您必須進入其首選項窗口來安裝命令行工具。看看this question

+0

謝謝!我沒有安裝它,所以它似乎...我會安裝它,然後檢查RVM是否會再次工作。 – hellomello 2013-04-11 05:11:54

+0

這工作,但我有rubygems問題,我想這是另一個問題要問。 – hellomello 2013-04-11 05:55:17

+0

@andrewliu事實上,我會同意。很高興我可以幫助解決這個問題。 – 2013-04-11 05:57:53