在RVM下安装1.8.7 p358的问题

时间:2012-06-04 21:10:02

标签: ruby rvm ruby-1.8.7

获得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等。但似乎没有任何效果。

1 个答案:

答案 0 :(得分:2)

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

rvm requirements

包括 Xcode 4.1 osx-gcc-installer

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

rvm cleanup archives

再试一次:

rvm reinstall 1.8.7

你有什么理由选择1.8.7吗?它是在生命结束时,如果不是要求,则应该使用1.9.3。