【发布时间】:2011-12-23 03:49:21
【问题描述】:
我按照 RVM 主页 (https://rvm.beginrescueend.com/rvm/install/) 上的说明进行操作
我输入了以下内容:
sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
脚本已执行,似乎没有出现任何错误。
同样不加sudo报错:
Warning: Failed to create the file
Warning: /usr/share/ruby-rvm/archives/wayneeseguin-rvm-stable.tgz: Permission
Warning: denied
0 792k 0 3908 0 0 2257 0 0:05:59 0:00:01 0:05:58 2257
curl: (23) Failed writing body (0 != 3908)
Could not download 'https://github.com/wayneeseguin/rvm/tarball/stable'.
curl returned status '23'.
我也把它放在我的 ~/.bashrc 中
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
我得到的是:
~$ type rvm | head -1
bash: type: rvm: not found
~$ source "/usr/local/rvm/scripts/rvm"
bash: /usr/local/rvm/scripts/rvm: No such file or directory
~$ source "$HOME/.rvm/scripts/rvm"
bash: /home/anonym/.rvm/scripts/rvm: No such file or directory
如何解决这个问题?
PS
我使用的是 Ubuntu 11.10
【问题讨论】:
-
您是否尝试在更改 .bashrc 后重新加载会话?为此,请使用
source ~/.bashrc或打开新的终端窗口。 -
您是想为自己的个人开发安装 RVM,还是为共享主机上的所有用户安装 RVM?除非您是系统管理员,否则您应该按照 RVM 的安装页面使用单用户安装。
-
我得到了这个,因为我在代理后面。