Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System wide installation in usr/share #77

Open
Startouf opened this issue May 9, 2016 · 6 comments
Open

System wide installation in usr/share #77

Startouf opened this issue May 9, 2016 · 6 comments

Comments

@Startouf
Copy link

Startouf commented May 9, 2016

I did follow the instructions from rvm.io, and my rvm got installed by default in

$ which rvm
/usr/share/rvm/bin/rvm

(instead of usr/local)

I am running on an Ubuntu instance from Amazon, this is maybe why ?

Anyway, the rvm path is not detected with the system-wide install. Might want to add this path to the list of default paths checked by your gem.

@nikunj0407
Copy link

I have the same issue ...
even after setting
rvm_bin_path: '/usr/share/rvm/bin'
capistrano deploy task is failing with error 127.

SSHKit::Command::Failed: rvm exit status: 127
rvm stdout: bash: /usr/local/rvm/bin/rvm: No such file or directory

Any solution ??

@Startouf
Copy link
Author

@nikunj0407 It's :rvm_custom_path not bin_path that worked for me.

However now I have to deploy to different servers running different OS, and they don't have the same RVM install directory.

I tried passing :rvm_custom_path to the server call, but it doesn't seem to work.

@daninfpj
Copy link

What worked for me was creating a symlink to /usr/share/rvm/bin/rvm on my deployment target dir $/.rvm/bin/rvm

@marklocklear
Copy link

+1 on @daninfpj suggestion. On your deploying users home directory do...

mkdir .rvm
mkdir .rvm/bin
ln -s /usr/share/rvm/bin/rvm .rvm/bin/rvm

@salza80
Copy link

salza80 commented May 19, 2020

on my server : echo $rvm_bin_path
/usr/share/rvm/bin

I fixed it by setting the custom path to :
set :rvm_custom_path, "/usr/share/rvm"

Then cap production rvm:check works, and the bundle command works on deploy.

@techtyb
Copy link

techtyb commented Sep 13, 2022

What worked for me was creating a symlink to /usr/share/rvm/bin/rvm on my deployment target dir $/.rvm/bin/rvm

Still facing this issue in 2022. Thankfully after hours of search got this to make my cap deploy work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants