2014-10-02 113 views
1

提前道歉。我搞砸了我的RVM,花了4個小時看RVM文檔和谷歌搜索的答案。感謝您提供的任何幫助!每當我嘗試安裝Ruby-1.9.3-P385我得到這個錯誤:無法在Maverick上使用RVM安裝ruby-1.9.3-p385

Welcome Master Josh!~/ziplist (master)$rvm install ruby-1.9.3-p385 
ruby-1.9.3-p385 - #removing src/ruby-1.9.3-p385.. 
Searching for binary rubies, this might take some time. 
No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3-p385. 
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. 
Checking requirements for osx. 
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date. 
Requirements installation successful. 
Installing Ruby from source to: /Users/JKEMP/.rvm/rubies/ruby-1.9.3-p385, this may take a while depending on your cpu(s)... 
ruby-1.9.3-p385 - #downloading ruby-1.9.3-p385, this may take a while depending on your connection... 
ruby-1.9.3-p385 - #extracting ruby-1.9.3-p385 to /Users/JKEMP/.rvm/src/ruby-1.9.3-p385.... 
ruby-1.9.3-p385 - #applying patch /Users/JKEMP/.rvm/patches/ruby/GH-488.patch. 
ruby-1.9.3-p385 - #configuring. 
Error running './configure --prefix=/Users/JKEMP/.rvm/rubies/ruby-1.9.3-p385 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared', 
showing last 15 lines of /Users/JKEMP/.rvm/log/1412284154_ruby-1.9.3-p385/configure.log 
[2014-10-02 17:09:27] ./configure 
current path: /Users/JKEMP/.rvm/src/ruby-1.9.3-p385 
GEM_HOME=/Users/JKEMP/.rvm/gems/[email protected] 
PATH=/Users/JKEMP/.rvm/usr/bin:/usr/local/Cellar/pkg-config/0.28/bin:/usr/local/Cellar/libtool/2.4.2/bin:/usr/local/opt/automake/bin:/usr/local/Cellar/autoconf/2.69/bin:/Users/JKEMP/.rvm/gems/[email protected]/bin:/Users/JKEMP/.rvm/gems/[email protected]/bin:/Users/JKEMP/.rvm/rubies/ruby-1.9.3-p545/bin:/Users/JKEMP/.rvm/bin:/usr/local/heroku/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/JKEMP/node_modules/jshint/bin/jshint:~/Library/Application Support/Sublime Text 3:/Users/JKEMP/bin:/Users/JKEMP/node_modules/jshint/bin/jshint 
GEM_PATH=/Users/JKEMP/.rvm/gems/[email protected]:/Users/JKEMP/.rvm/gems/[email protected] 
command(7): ./configure --prefix=/Users/JKEMP/.rvm/rubies/ruby-1.9.3-p385 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared 
configure: WARNING: unrecognized options: --without-tcl, --without-tk 
checking build system type... i386-apple-darwin13.4.0 
checking host system type... i386-apple-darwin13.4.0 
checking target system type... i386-apple-darwin13.4.0 
checking whether the C compiler works... no 
configure: error: in `/Users/JKEMP/.rvm/src/ruby-1.9.3-p385': 
configure: error: C compiler cannot create executables 
See `config.log' for more details 
There has been an error while running configure. Halting the installation. 

回答

0

這很可能是一個問題,您的Xcode是過時的。你剛剛升級到小牛隊嗎?如果是這樣,這條命令:

xcode-select --install 

這將需要一些時間,那麼你就可以運行你的RVM安裝。

如果還是不行,請嘗試:

rvm install ruby-1.9.3 --with-gcc=clang