我在使用多用户RVM安装安装rubies时遇到问题

时间:2021-03-05 07:15:27

I followed the instructions on the RVM website on how to do a multi-user installation. When I try installing a version of ruby, I get the following:

我按照RVM网站上有关如何进行多用户安装的说明进行操作。当我尝试安装ruby版本时,我得到以下内容:

$ /usr/local/rvm$ rvm install 1.9.2
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...

ruby-1.9.2-p290 - #fetching 
ruby-1.9.2-p290 - #downloading ruby-1.9.2-p290, this may take a while depending on your connection...
Warning: Failed to create the file ruby-1.9.2-p290.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0 8604k    0  2804    0     0    631      0  3:52:43  0:00:04  3:52:39   631
curl: (23) Failed writing body (0 != 2804)
ERROR: There was an error, please check /usr/local/rvm/log/ruby-1.9.2-p290/*.log. Next we'll try to fetch via http.
Trying http:// URL instead.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file ruby-1.9.2-p290.tar.bz2
  0 8604k    0  2503    0     0   5039      0  0:29:08 --:--:--  0:29:08  9972
curl: (23) Failed writing body (0 != 2503)
ERROR: There was an error, please check /usr/local/rvm/log/ruby-1.9.2-p290/*.log
ERROR: There has been an error while trying to fetch the source.  
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.

What am I doing wrong?

我究竟做错了什么?

2 个解决方案

#1


36  

have you tried using

你试过用吗?

rvmsudo rvm install 1.9.2 

#2


0  

I fixed the same problem without any sudo stuff, which is not recommendable at all, using the solution of upisdown in this question

我修复了同样的问题,没有任何sudo的东西,这是不值得推荐的,在这个问题中使用upisdown的解决方案

#1


36  

have you tried using

你试过用吗?

rvmsudo rvm install 1.9.2 

#2


0  

I fixed the same problem without any sudo stuff, which is not recommendable at all, using the solution of upisdown in this question

我修复了同样的问题,没有任何sudo的东西,这是不值得推荐的,在这个问题中使用upisdown的解决方案