简体   繁体   中英

Error on installing ruby with 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

If I try to launch

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

I get the same error.

But if I remove '--no-same-owner' the promlem dissapeared.

How can I fix the error?

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

Hmm... I install under no-root account and the problem disapeared.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM