Skip to content
New issue

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

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

Already on GitHub? # to your account

Some ruby version changers set GEM_HOME outside of RUBY_ROOT #12

Open
edsinclair opened this issue Nov 25, 2013 · 2 comments
Open

Some ruby version changers set GEM_HOME outside of RUBY_ROOT #12

edsinclair opened this issue Nov 25, 2013 · 2 comments

Comments

@edsinclair
Copy link
Collaborator

chruby for example defaults to:

$HOME/.gem/$RUBY_ENGINE/$RUBY_VERSION

https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh#L32-L58

Currently not sure what the most portable solution is here...

@edsinclair
Copy link
Collaborator Author

Just updating with my temporary manual workaround:
I installed bundler into the GEM_ROOT like so:

‹1.8.7› GEM_HOME=$GEM_ROOT gem install bundler
‹1.9.3› GEM_HOME=$GEM_ROOT gem install bundler
‹2.0.0› GEM_HOME=$GEM_ROOT gem install bundler
‹jruby› GEM_HOME=$GEM_ROOT gem install bundler
‹rbx› GEM_HOME=$GEM_ROOT gem install bundler

But this has obvious problems as I'll need to remember this every time it is necessary to update bundler etc.

wwtd should be able to find bundler even when the GEM_HOME is outside of the RUBY_ROOT

@SteveBenner
Copy link

Hi, I'm not using this software but found the issue while googling about Ruby ENV variables. I thought I would offer that if you are using a repetitive solution for configuring Rubygems, it may prove useful to look into the configuration options for Rubygems environment here. If you're already aware of that functionality @edsinclair sorry for wasting your time :) I just know that Rubygem has a lot of features that are overlooked; it's really quite flexible.

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

No branches or pull requests

2 participants