Suppose I installed some ruby gems using gem install gemname
. Where should I install them, and when what directory should I run gem install rubygems-update-1.3.1.gem
from?
views:
41answers:
4
A:
They are automatically installed to your GEM_HOME. In Linux, you can open a terminal and type:
echo $GEM_HOME
To find out where that is exactly.
NullUserException
2010-08-05 07:07:10
in windows how do i find and can i install gems from any directory in windows
Amit singh tomar
2010-08-05 08:38:49
Did you use [Ruby Installer](http://rubyinstaller.org/)?
NullUserException
2010-08-05 14:58:06
+1
A:
gem env
will tell you where they were installed. In general on windows it doesn't matter what directory you're in, running
gem update --system
will work from anywhere. -r
rogerdpack
2010-08-05 15:26:50
A:
You shouldn't need to be in any specific directory; running gem install
will put the gem in the directory that gem
expects your gems to be.
As mentioned in other answers, if you want to see where that directory is, run gem env
and take a look at the INSTALLATION DIRECTORY:
line.
Daniel Vandersluis
2010-08-05 15:31:50