2012-06-20 65 views
0

您好我正尝试使用RVM将我的ruby 1.9.2升级到1.9.3。这是我在做什么:使用rvm OS X Lion将Ruby 1.9.2升级到1.9.3时出错使用rvm OS X Lion

rvm upgrade 1.9.2 
Are you sure you wish to upgrade from ruby-1.9.2-p290 to  ruby-1.9.3-p0? (Y/n): y 

然后我得到以下错误:

Installing new ruby ruby-1.9.3-p0 
Installing Ruby from source to: /Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... 

ruby-1.9.3-p0 - #fetching 
ruby-1.9.3-p0 - #extracted to /Users/jeanosorio/.rvm/src/ruby-1.9.3-p0 (already extracted) 
Fetching yaml-0.1.4.tar.gz to /Users/jeanosorio/.rvm/archives 
Extracting yaml-0.1.4.tar.gz to /Users/jeanosorio/.rvm/src 
Configuring yaml in /Users/jeanosorio/.rvm/src/yaml-0.1.4. 
Compiling yaml in /Users/jeanosorio/.rvm/src/yaml-0.1.4. 
Installing yaml to /Users/jeanosorio/.rvm/usr 
ruby-1.9.3-p0 - #configuring 
ERROR: Error running ' ./configure --prefix=/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/jeanosorio/.rvm/usr ', please read /Users/jeanosorio/.rvm/log/ruby-1.9.3-p0/configure.log 
ERROR: There has been an error while running configure. Halting the installation. 
ERROR: Unable to install ruby ruby-1.9.3-p0.   Please install it manually to continue. 

我使用XCODE 4.2.1,任何想法,请???

这是configure.log

[2012-06-20 11:31:41] ./configure --prefix=/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/jeanosorio/.rvm/usr 
configure: WARNING: unrecognized options: --with-libyaml-dir 
checking build system type... x86_64-apple-darwin11.4.0 
checking host system type... x86_64-apple-darwin11.4.0 
checking target system type... x86_64-apple-darwin11.4.0 
checking whether the C compiler works... no 
configure: error: in `/Users/jeanosorio/.rvm/src/ruby-1.9.3-p0': 
configure: error: C compiler cannot create executables 
See `config.log' for more details 
+0

那么configure.log说什么? – lukad

+0

嘿@LukaD我刚刚编辑帖子向你展示configure.log – Jean

+0

这意味着没有编译器可以找到。这个链接可能会帮助你。 http://blog.jeffdouglas.com/2011/08/01/ruby-1-9-2-install-errors-with-mac-os-x-lion-and-rvm/ – lukad

回答

1
  1. 更新RVM curl -L get.rvm.io | bash -s stable && rvm reload
  2. 安装osx-gcc-installer
  3. 阅读,并按照指示rvm requirements
  4. 安装Ruby:RVM安装1.9.3

你也可以使用用于新系统安装的。

+0

谢谢mpapis,这个工作适合我。 – Jean

0

尝试升级到Xcode的4.3。干净的安装,我能够得到1.9.3-p125的工作。

如果不工作,RVM有一些提示:https://rvm.io/os/osx/

相关问题