使用RVM安装ruby时出错

时间:2011-04-27 12:53:33

标签: 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.

- &GT;

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

- &GT;

[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',那么promlem就会消失。

如何解决错误?

3 个答案:

答案 0 :(得分:11)

答案 1 :(得分:2)

rvm get head && rvm get stable && rvm install 1.9.3

答案 2 :(得分:0)

嗯......我在无root帐户下安装,问题就消失了。