ruby - 使用 RVM 安装 ruby​​ 时出错

标签 ruby rvm

[root@arch ~]# rvm install 1.8.7

-->

ruby-1.8.7-p334 - #fetching 
ruby-1.8.7-p334 - #extracting ruby-1.8.7-p334 to /usr/local/rvm/src/ruby-1.8.7-p334
ERROR: Error running 'bunzip2 < '/usr/local/rvm/archives/ruby-1.8.7-p334.tar.bz2' | tar xf --no-same-owner - -C /usr/local/rvm/tmp/rvm_src_6986', please read /usr/local/rvm/log/ruby-1.8.7-p334/extract.log
ERROR: There has been an error while trying to extract the source.  
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.

-->

[root@arch ~]# cat /usr/local/rvm/log/ruby-1.8.7-p334/extract.log 

-->

[2011-04-27 13:47:58] bunzip2 < '/usr/local/rvm/archives/ruby-1.8.7-p334.tar.bz2' | tar xf --no-same-owner - -C /usr/local/rvm/tmp/rvm_src_6726
tar: --no-same-owner: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
[2011-04-27 13:48:12] bunzip2 < '/usr/local/rvm/archives/ruby-1.8.7-p334.tar.bz2' | tar xf --no-same-owner - -C /usr/local/rvm/tmp/rvm_src_6835
tar: --no-same-owner: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
[2011-04-27 13:48:22] bunzip2 < '/usr/local/rvm/archives/ruby-1.8.7-p334.tar.bz2' | tar xf --no-same-owner - -C /usr/local/rvm/tmp/rvm_src_6910
tar: --no-same-owner: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

如果我尝试启动

bunzip2 < '/usr/local/rvm/archives/ruby-1.8.7-p334.tar.bz2' | tar xf --no-same-owner - -C /usr/local/rvm/tmp/rvm_src_6726

我得到了同样的错误。

但如果我删除“--no-same-owner”,问题就会消失。

如何修复错误?

最佳答案

关于ruby - 使用 RVM 安装 ruby​​ 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5804428/

相关文章:

ruby-on-rails - Rails 仅迭代与对象关联的持久化记录

ruby - 无论如何我可以使用 if else inside ruby​​ case..end

ruby - Jekyll 的 pretty-print html 输出

ruby - 安装 RVM 时出错

ruby - 在 OS X Lion 上使用 RVM 安装 Ruby 1.9.2 失败

javascript - 带回调的 Rails reCAPTCHA

ruby - 带有选项的 paralell_rspec --exclude-pattern

使用 gem 通过 RVM 安装 Rails 时出现权限错误

ruby-on-rails - 有人试过在 Ubuntu 中同时从 RVM 和 deb 安装 Ruby 吗?

ruby-on-rails - rcov + Rails3 rc 现在不再依赖于 linecache