【问题标题】:I am having trouble installing rubies with a multi-user RVM installation我在使用多用户 RVM 安装 rubies 时遇到问题
【发布时间】:2012-01-24 18:16:06
【问题描述】:

我按照 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.

我做错了什么?

【问题讨论】:

  • 你试过用rvmsudo rvm install 1.9.2
  • 这看起来很有效!我之前尝试过 rvmsudo 不正确,使用“rvmsudo install 1.9.2”。愚蠢的错误。感谢您的帮助。
  • 我会给出一个实际的答案,你能接受吗?
  • 是的,这绝对是一个答案。

标签: ruby rvm ubuntu-10.04


【解决方案1】:

您是否尝试过使用

rvmsudo rvm install 1.9.2 

【讨论】:

    【解决方案2】:

    我在没有任何 sudo 东西的情况下修复了同样的问题,这根本不推荐,使用 this question 中的 upisdown 解决方案

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-18
      • 1970-01-01
      • 1970-01-01
      • 2012-07-06
      • 2023-03-13
      • 1970-01-01
      相关资源
      最近更新 更多