rvm升级失败 - OSX Lion

时间:2013-01-16 05:11:59

标签: ruby macos rvm

  

可能重复:
  Error installing Ruby with RVM (OSX 10.8)

我正在尝试升级我的Ruby版本 - 现在我正在使用p194 - 我看到有p362可用。注意:我是新手,抱歉,如果我误解了什么。

我使用的是Macbook Pro,OSX 10.7.5,我的ruby版本是:

[~]$ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]

因此,当我尝试使用RVM升级时,我运行此命令:

[~]$rvm upgrade 1.9.3-p194 1.9.3-p362

然后它要求我确认,我说是,然后它运行,然后它给了我错误:

Installing new ruby ruby-1.9.3-p362
No binary rubies available for: downloads/ruby-1.9.3-p362.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p362, this may take a while depending on your cpu(s)...
ruby-1.9.3-p362 - #downloading ruby-1.9.3-p362, this may take a while depending on your connection...
ruby-1.9.3-p362 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p362 (already extracted)
Patch segfault_fix_7629 was already applied.
ruby-1.9.3-p362 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p362 --with-opt-dir=/usr/local/rvm/usr', please read /usr/local/rvm/log/ruby-1.9.3-p362/configure.log
There has been an error while running configure. Halting the installation.
Migrating gems from 1.9.3-p194 to ruby-1.9.3-p362
Ruby 'ruby-1.9.3-p362' is not installed - please install it first.
Error migrating gems.

然后我跑了:

[~]$rvm install ruby-1.9.3-p362

我得到这个错误:

No binary rubies available for: downloads/ruby-1.9.3-p362.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p362, this may take a while depending on your cpu(s)...
ruby-1.9.3-p362 - #downloading ruby-1.9.3-p362, this may take a while depending on your connection...
ruby-1.9.3-p362 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p362 (already extracted)
Patch segfault_fix_7629 was already applied.
ruby-1.9.3-p362 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p362 --with-opt-dir=/usr/local/rvm/usr', please read /usr/local/rvm/log/ruby-1.9.3-p362/configure.log
There has been an error while running configure. Halting the installation.

然后我去打开它引用的日志文件,这里是内容:

[2013-01-15 23:01:13] env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p362 --with-opt-dir=/usr/local/rvm/usr
checking build system type... x86_64-apple-darwin11.4.2
checking host system type... x86_64-apple-darwin11.4.2
checking target system type... x86_64-apple-darwin11.4.2
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.

请告知此处发生的事情以及如何纠正此问题。

提前谢谢。

0 个答案:

没有答案