【发布时间】:2012-06-29 19:58:49
【问题描述】:
问题很简单:
无法安装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: Permission denied
如果我在上面的命令中的“bash”之前添加“sudo”,它工作正常,但它是多用户安装......
【问题讨论】:
-
@Sergio: 增加了安装脚本中存在问题的部分
-
我怀疑您的
~/.rvm目录存在并且您没有对其的写入权限。删除它并重试。 -
如果您包含实际的错误消息会很有帮助。
-
@Mark:添加了错误消息...阅读 Sergio 的消息,他可能猜对了,但是单用户安装应该访问 ~/.rvm 而不是 /usr/local/rvm no ? (后者用于多用户安装)