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

ruby to use when not in the project's directory #2792

Closed
ag4ve opened this issue Apr 21, 2014 · 2 comments
Closed

ruby to use when not in the project's directory #2792

ag4ve opened this issue Apr 21, 2014 · 2 comments

Comments

@ag4ve
Copy link

ag4ve commented Apr 21, 2014

(I'm not sure if this is a feature or just something I couldn't find documented)

So, lets take the 'gist' gem for instance - I'd want to pin this to a particular rvm space, but not based on the project directory I'm in. For this, it's trying to use a different ruby:
% /home/swilson/.rvm/gems/ruby-2.1.0/bin/gist
/usr/bin/env: ruby_executable_hooks1.9.1: No such file or directory

(I've used this as an example since it's a public project - the same is true for other scripts I've had)

@mpapis
Copy link
Member

mpapis commented Apr 25, 2014

you should use wrappers for that:

rvm help wrapper

an example session would like this:

rvm use ruby@gems --create
gem install gist
rvm wrapper ruby@gems --no-prefix gist

and then the gist command can be found in $rvm_path/bin which is always in PATH and this way you can always use the command

@mpapis
Copy link
Member

mpapis commented May 10, 2014

I assume this works as expected - closing the ticket, please let me know if you need any more help.

@mpapis mpapis closed this as completed May 10, 2014
@pkuczynski pkuczynski added help and removed support labels Oct 7, 2016
@pkuczynski pkuczynski added this to the rvm-1.27.0-before milestone May 8, 2019
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

3 participants