加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby – 安装RVM:得到错误“有一个错误(23).

发布时间:2020-12-16 20:25:41 所属栏目:百科 来源:网络整理
导读:我试图安装ruby版本管理器(rvm)没有成功. 如何解决这个错误我得到了 ubuntu@ip-172-31-0-20:/tmp$rvm install ruby-1.9.3-p484 Searching for binary rubies,this might take some time. No binary rubies available for: ubuntu/14.04/x86_64/ruby-1.9.3-p4
我试图安装ruby版本管理器(rvm)没有成功.
如何解决这个错误我得到了

ubuntu@ip-172-31-0-20:/tmp$rvm install ruby-1.9.3-p484
Searching for binary rubies,this might take some time.
No binary rubies available for: ubuntu/14.04/x86_64/ruby-1.9.3-p484.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p484,this may take a while depending on your cpu(s)...
ruby-1.9.3-p484 - #downloading ruby-1.9.3-p484,this may take a while depending on your connection...
Warning: Failed to create the file ruby-1.9.3-p484.tar.bz2.part: Permission
Warning: denied
0 9806k 0 1002 0 0 22905 0 0:07:18 --:--:-- 0:07:18 23302
curl: (23) Failed writing body (0 != 1002)
There was an error(23).
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.bz2
Warning: Failed to create the file ruby-1.9.3-p484.tar.bz2.part: Permission
Warning: denied
0 9806k 0 1167 0 0 4300 0 0:38:55 --:--:-- 0:38:55 4290
curl: (23) Failed writing body (0 != 1167)
There was an error(23).
Failed download
There has been an error fetching the ruby interpreter. Halting the installation.
ubuntu@ip-172-31-0-20:/tmp$

解决方法

您的RVM安装在/usr/local / rvm中 – 通常称为系统安装,这要求您的用户ubuntu将添加到rvm组:
rvm group add rvm "$USER"

是的,使用$USER将用你的用户名替换你的shell

然后注销并登录,确保与:

id

您的用户在rvm组中,

最后只是为了更新RVM的权限:

rvm fix-permissions

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读