我正在尝试在redhat 5.5上安装rvm,并且出现此错误:
[mc@owl-ci ~]$bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 979 100 979 0 0 8168 0 --:--:-- --:--:-- --:--:-- 318k
cloning into rvm...
remote: Counting objects: 18463, done.
remote: Compressing objects: 100% (4985/4985), done.
remote: Total 18463 (delta 12517), reused 17903 (delta 12002)
Receiving objects: 100% (18463/18463), 3.19 MiB, done.
Resolving deltas: 100% (12517/12517), done.
mkdir: cannot create directory `/archives': Permission denied
mkdir: cannot create directory `/src': Permission denied
mkdir: cannot create directory `/log': Permission denied
mkdir: cannot create directory `/gems': Permission denied
mkdir: cannot create directory `/man': Permission denied
mkdir: cannot create directory `/rubies': Permission denied
mkdir: cannot create directory `/config': Permission denied
mkdir: cannot create directory `/user': Permission denied
我之前已经在不同的机器上安装了rvm,没有问题.
我对为什么要在根路径下创建目录感到困惑,我以为一切都在〜/ .rvm下(因此权限应该没有问题)
解决方法:
好的,显然我的旧答案实际上不会为您提供正常运行的rvm安装.我似乎要报告一个最近的错误.同时,请按照此处的说明进行操作:
在“从最新的源tarball安装/更新最新的rvm”部分下
旧答案:
尝试下载rvm安装脚本:
卷曲http://rvm.beginrescueend.com/releases/rvm-install-head> RVM安装头
然后找到以下行:
rvm_path = “${rvm_path: – ” $HOME / .rvm “}”
并在前面添加“导出”:
出口rvm_path =“ ${rvm_path:-” $HOME / .rvm“}”
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。