ruby - 稀土安装

标签 ruby rvm

我正在尝试在我的机器上安装 Ruby EE,但无法安装。 ping production.cf.rubygems.org 也可以。可能是什么问题?

prashanth@prashanth-laptop:~/Downloads$ rvm install ree
Installing Ruby Enterprise Edition from source to: /usr/local/rvm/rubies/ree-1.8.7-2011.03
ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   184    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0Warning: Failed to create the file ruby-enterprise-1.8.7-2011.03.tar.gz
  0 7713k    0 16150    0     0   3108      0  0:42:21  0:00:05  0:42:16 17497
curl: (23) Failed writing body (0 != 16150)
ERROR: There was an error, please check /usr/local/rvm/log/ree-1.8.7-2011.03/*.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   184    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0Warning: Failed to create the file ruby-enterprise-1.8.7-2011.03.tar.gz

  0 7713k    0 16150    0     0   4375      0  0:30:05  0:00:03  0:30:02 18692

curl: (23) Failed writing body (0 != 16150)
ERROR: There was an error, please check /usr/local/rvm/log/ree-1.8.7-2011.03/*.log
ERROR: There has been an error while trying to fetch the source. 
Halting the installation.

谢谢。

最佳答案

讯息:

Warning: Failed to create the file ruby-enterprise-1.8.7-2011.03.tar.gz

是你的线索。您正在运行 RVM 的机器范围安装,但试图以没有 root 访问权限的用户身份安装新的 ruby​​。

尝试:

rvmsudo rvm install ree

或者以 root 身份登录并重试该命令。

关于ruby - 稀土安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7229926/

相关文章:

ruby - 在 Ubuntu 12.04.1 LTS 上安装 ruby​​ 2.0.0-p247

rvm - zsh `which rvm` 或 `which gem` 返回函数内容而不是路径

ruby - rvm 安装不工作 : "RVM is not a function"

ruby-on-rails - 任何人尝试在 Ruby 1.9.1 RC1 下运行 Rails 2.2(或 Edge)

php - 在 Capistrano 任务中引用当前服务器

ruby - 缺少 Gem 依赖项

ruby-on-rails - Vim 使用 ctr-w gF 跳转到一个文件,路径中带有 @ dirwith@funnyname/path :34

ruby - zsh:不再找到 Heroku 工具带

ruby-on-rails - Rails 4 何时不允许使用选项哈希(最后)?

ruby-on-rails - 如何在 Controller 中调用 rake 任务?