RVM安装不起作用

时间:2011-11-04 19:34:49

标签: bash ssh rvm

尝试在我的共享Hostgator服务器上安装RVM。我有jailshelled SSH访问。 Git已安装并正常运行。当我运行标准RVM安装脚本时:

bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

它让git repo很好,

Initialized empty Git repository in /home/britt/.rvm/src/rvm/.git/
Enter passphrase for key '/home/britt/.ssh/id_rsa':
remote: Counting objects: 8948, done.
remote: Compressing objects: 100% (3901/3901), done.
remote: Total 8948 (delta 5958), reused 7097 (delta 4271)
Receiving objects: 100% (8948/8948), 2.91 MiB | 1354 KiB/s, done.
Resolving deltas: 100% (5958/5958), done.

然后错误:

: No such file or directory

所以我检查了自动安装脚本正在做什么,它基本上是从~/.rvm/src/rvm/scripts/install运行另一个安装脚本。所以我让它可执行并再次尝试:

chmod -x ~/.rvm/src/rvm/scripts/install
exec ~/.rvm/src/rvm/scripts/install

这给了我一个“许可被拒绝”的错误:

-jailshell: /home/britt/.rvm/src/rvm/scripts/install: Permission denied
-jailshell: exec: /home/britt/.rvm/src/rvm/scripts/install: cannot execute: Permission denied

任何想法??

1 个答案:

答案 0 :(得分:0)

我发了一个命令

source /usr/local/rvm/scripts/rvm

然后继续

type rvm | head -1

并获得类似

的输出
  

rvm是一个函数

这对我有用。可能这会对你有所帮助