-
Notifications
You must be signed in to change notification settings - Fork 14
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
gem install needs --no-user-install #6
Comments
That's very strange, I don't think that's how rubygems behaves. Do you think you can try without rbenv? |
Works fine without rbenv, it must be the culprit. |
oops. spoke too soon. No, even without rbenv, gem install still puts gems into ~/.gem. |
What are the values of
|
It looks ok when in the subshell, but not with $ mkdir tmp
$ cd tmp
$ echo $GEM_HOME
$ gs init
$ gs
$ echo $GS_NAME
tmp
$ echo $GEM_HOME
/home/egjertsen/tmp/.gs
$ echo $GEM_PATH
/home/egjertsen/tmp/.gs:/home/egjertsen/.gem/ruby/2.0.0:/usr/lib/ruby/gems/2.0.0
$ exit
$ gs echo $GEM_HOME
Also (not that it's related, but may be related to #4 ), $ gs echo $PATH
/home/egjertsen/.rbenv/bin:/home/egjertsen/.gem/ruby/2.0.0/bin:/usr/local/heroku/bin:/home/egjertsen/.rbenv/shims:/home/egjertsen/.rbenv/bin:/home/egjertsen/.gem/ruby/2.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/core_perl
|
I think the problem has to do with |
I will close this one and refer to #4. |
I don't know if it's due to rbenv or it's the rubygems default nowadays, but I have always needed to
gem install foo --no-user-install
to get gems to install into .gs . Otherwise they always go into ~/.gem regardless of $GEM_PATH. Am I missing something?If this is the case, should a line be added to the Readme to this effect?
echo "install: --no-user-install" >> ~/.gemrc
is what I did.The text was updated successfully, but these errors were encountered: