在Ruby安装期间遇到RVM问题(1.9.2) [英] running into issues with RVM during Ruby install (1.9.2)

查看:170
本文介绍了在Ruby安装期间遇到RVM问题(1.9.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过RVM安装ruby并收到以下错误,并且关于发生的事情的日志并不十分清楚,有人遇到了吗?我似乎回想起Ruby不应该以root用户身份安装,但是我对我得到的权限错误有点怀疑.

I'm trying to install ruby via RVM and am getting the following error and the logs are not really clear as to what's going on, has anyone run into this? I seem to recall that Ruby should not be installed as root but I'm a bit suspicious of the permissions error that I'm getting.

**Installing Ruby from source to: /Users/mark/.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...
  % 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: Permission denied
  0 8604k    0 16150    0     0  14980      0  0:09:48  0:00:01  0:09:47 26562
curl: (23) Failed writing body (0 != 16150)
ERROR: There was an error, please check /Users/mark/.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: Permission denied
  0 8604k    0 16150    0     0  24640      0  0:05:57 --:--:--  0:05:57 28333
curl: (23) Failed writing body (0 != 16150)
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.**

推荐答案

我有相同的错误消息,我通过执行sudo chown -R user:user /usr/local/rvm来解决它,其中user是您的登录用户,之后我运行了rvm install 1.9 .2并成功完成.

I had the same error message, and i resolved it by doing sudo chown -R user:user /usr/local/rvm where user is your logged in user, after that i ran rvm install 1.9.2 and it completed successfully.

这篇关于在Ruby安装期间遇到RVM问题(1.9.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆