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

rvm-shell path change in capistrano scripts #436

Closed
dgm opened this issue Sep 18, 2011 · 6 comments
Closed

rvm-shell path change in capistrano scripts #436

dgm opened this issue Sep 18, 2011 · 6 comments

Comments

@dgm
Copy link

dgm commented Sep 18, 2011

As also reported to the capistrano folks in capistrano/capistrano#43, the capistrano recipe tries to use rvm-shell in /usr/local/rvm/bin, but they appear to now be installed in /usr/local/bin.

The temporary workaround that we found is to:

set :rvm_bin_path, "/usr/local/bin"

@ghost
Copy link

ghost commented Sep 19, 2011

Your information is incorrect. RVM does not install rvm-shell to /usr/local/bin/ it installs it to /usr/local/rvm/bin/ ash shown below:

∴ ls /usr/local/rvm/bin/rvm
rvm rvm-auto-ruby rvm-exec rvm-installer rvm-prompt rvm-shell rvmsudo

∴ rvm --version

rvm 1.8.3 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]

@ghost ghost closed this as completed Sep 19, 2011
@ghost ghost self-assigned this Sep 19, 2011
@dgm
Copy link
Author

dgm commented Sep 19, 2011

counter proof:

[root@devsys ~]# ls -al /usr/local/bin/rvm*
-rwxrwxr-x 1 root root 651 Sep 18 13:07 /usr/local/bin/rvm
-rwxrwxr-x 1 root root 688 Sep 18 13:07 /usr/local/bin/rvm-auto-ruby
-rwxrwxr-x 1 root root 1598 Sep 18 13:07 /usr/local/bin/rvm-exec
-rwxrwxr-x 1 root root 6732 Sep 18 13:07 /usr/local/bin/rvm-installer
-rwxrwxr-x 1 root root 3704 Sep 18 13:07 /usr/local/bin/rvm-prompt
-rwxrwxr-x 1 root root 1593 Sep 18 13:07 /usr/local/bin/rvm-shell
-rwxrwxr-x 1 root root 916 Sep 18 13:07 /usr/local/bin/rvmsudo
[root@devsys ~]# ls /usr/local/rvm/bin
[root@devsys ~]#

And if you read that other thread, obviously other people have it do this too.

@dgm
Copy link
Author

dgm commented Sep 19, 2011

It's been some time since I did this, so I don't know where this comes from, but /etc/rvmrc has:

# Setup default configuration for rvm.
# If an rvm install exists in the home directory, don't load this.'
if [[ ! -s "$HOME/.rvm/scripts/rvm" ]]; then
  umask g+w
  export rvm_selfcontained=0
  export rvm_prefix="/usr/local/"
fi
rvm_trust_rvmrcs=1

grepping for rvm_prefix yields this suspicious line:

true "${rvm_bin_path:="${rvm_prefix}/bin"}"

which looks like it might be responsible for the wrong install path.

@ghost
Copy link

ghost commented Sep 19, 2011

The global rvmrc doesn't do what you're showing. it only contains umask g+w so thats a hand modified rvmrc.
Also, in the 1.6.x series things were installed into /usr/local/bin but that hasn't been true for some time now. And that rvm_prefix grep is correct. its not suspicious. The rvm_prefix is usually /usr/local/rvm and NOT /usr/local

@dgm
Copy link
Author

dgm commented Sep 19, 2011

Ah, well, this has been installed for a while, so the rvmrc file is probably from the 1.6 series. I'm fairly sure I only used whatever the rvm website said to do at the time.

I tried to update it today and the rvm update command was no longer valid that was in that version, so I ran the install script from the website again... it must have tripped on that old configuration. Perhaps the install script could put up a warning if it sees that?

@dgm
Copy link
Author

dgm commented Sep 19, 2011

Another example where this must be causing pain: http://stackoverflow.com/questions/5253153/rvm-error-with-deploying-rails-app-via-capistrano

@pkuczynski pkuczynski added this to the rvm-1.27.0-before milestone May 9, 2019
This issue was closed.
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

2 participants