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

ruby – 无法安装单用户版本的RVM

发布时间:2020-12-16 21:20:47 所属栏目:百科 来源:网络整理
导读:问题很简单: 我无法安装RVM(单用户安装),就好像我按照RVM网站上的说明操作,即: $curl -L https://get.rvm.io | bash -s stable 我在安装脚本文件的第360行(以echo开头的行)收到权限被拒绝错误: # Perform the actual installation,first we obtain the so
问题很简单:

我无法安装RVM(单用户安装),就好像我按照RVM网站上的说明操作,即:

$curl -L https://get.rvm.io | bash -s stable

我在安装脚本文件的第360行(以echo开头的行)收到权限被拒绝错误:

# Perform the actual installation,first we obtain the source using whichever
# means was specified,if any. Defaults to head.
  case "${version}" in  
    (head) 
       echo "${branch}" > "$rvm_path/RELEASE"    
       install_head ${branch:-master} || exit $?  
  ;;

这是错误消息:

olivier @?$curl -L https://get.rvm.io | bash -s稳定

bash:第360行:/usr/local / rvm / RELEASE:权限被拒绝

如果我在上面的命令中在“bash”之前添加“sudo”,它工作正常,但它是多用户安装…

解决方法

实际上,我通过卸载旧版本的RVM解决了这个问题:sudo rvm implode然后删除文件/ etc / rvmrc.完成后,我可以安装单用户版本,一切正常!

对不起Remear,我想编辑你的答案或通过我的评论完成它但我不能(评论只能在5分钟内编辑……至少我投了赞成票……).

(编辑:李大同)

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

    推荐文章
      热点阅读