/ usr/local/rvm/bin/rvm-shell:没有这样的文件或目录

cna*_*ize 2 ruby ubuntu capistrano rvm

我有问题.我已经安装了rvm但是当我尝试cap deploy:setup使用时:

bash: /usr/local/rvm/bin/rvm-shell: No such file or directory
    command finished in 244ms
failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'ruby-1.9.3-p0' -c 'mkdir -p /srv/xxx /srv/xxx/releases /srv/xxx/shared /srv/xxx/shared/system /srv/xxx/shared/log /srv/xxx/shared/pids'" on xxxxxxxx
Run Code Online (Sandbox Code Playgroud)

我试着cd/usr/local/rvm,但我有No such file or directory.怎么解决?

cna*_*ize 7

set :default_shell, "/bin/bash -l"
Run Code Online (Sandbox Code Playgroud)

适合我


小智 5

适合我:

set :rvm_type, :user
Run Code Online (Sandbox Code Playgroud)

在它检查你的rvm-shell之前.在服务器上运行:

which rvm-shell 
Run Code Online (Sandbox Code Playgroud)

如果您将看到/home/mihserf/.rvm/bin/rvm-shell之类的内容,请尝试上面提到的解决方案.