1

获得 Xcode 后,一切rvm install 1.9.3正常。但是,rvm install 1.8.7会引发以下错误。

~ ☺  rvm install 1.8.7
Installing Ruby from source to: /Users/jordanscales/.rvm/rubies/ruby-1.8.7-p358, this may take a while depending on your cpu(s)...

ruby-1.8.7-p358 - #fetching 
ruby-1.8.7-p358 - #extracting ruby-1.8.7-p358 to /Users/jordanscales/.rvm/src/ruby-1.8.7-p358
Error running 'tar xjf /Users/jordanscales/.rvm/archives/ruby-1.8.7-p358.tar.bz2 -C /Users/jordanscales/.rvm/tmp/rvm_src_30581 ', please read /Users/jordanscales/.rvm/log/ruby-1.8.7-p358/extract.log
There has been an error while trying to extract the source.  
Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.
Please be aware that you just installed a ruby that requires        2 patches just to be compiled on up to date linux system.
This may have known and unaccounted for security vulnerabilities.
Please consider upgrading to Ruby 1.9.3-194 which will have all of the latest security patches.
~ ☺ 

日志读取

[2012-06-04 17:06:23] tar xjf /Users/jordanscales/.rvm/archives/ruby-1.8.7-p358.tar.bz2 -C /Users/jordanscales/.rvm/tmp/rvm_src_30581 
ruby-1.8.7-p358/lib/test/unit/ui/gtk/testrunner.rb: (Empty error message)
tar: Error exit delayed from previous errors.

知道如何解决吗?我已经尝试过rvm get head,安装 gcc-4.2 并使用它,使用 clang 等。但似乎没有任何效果。

4

1 回答 1

2

确保满足以下规定的所有要求:

rvm requirements

包括Xcode 4.1osx-gcc-installer

运行(修复损坏的下载):

rvm cleanup archives

然后再试一次:

rvm reinstall 1.8.7

你有什么理由选择 1.8.7 吗?它即将结束,如果这不是必需的,则应使用 1.9.3 代替。

于 2012-06-05T00:08:56.500 回答