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

发布于 2024-12-22 01:42:03 字数 1556 浏览 0 评论 0原文

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

我做错了什么?

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:

$ /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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

拥抱影子 2024-12-29 01:42:03

你尝试过使用

rvmsudo rvm install 1.9.2 

have you tried using

rvmsudo rvm install 1.9.2 
绿萝 2024-12-29 01:42:03

我修复了同样的问题,没有任何 sudo 东西,这根本不推荐,使用 这个问题

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文