I just built RHEL 6 and I need to be able to install ruby gems, etc. I have the ruby 1.8.7 packages installed but there is no gem command anywhere? What gives?

link|improve this question

Have you tried find / --name gem? If it's a new system it shouldn't take too long to search. If that doesn't return any results it might not be installed, do a yum list *gem*, pick the most relevant result and install it. Not really a proper answer (Unless it works, in which case it was ^_^) – sam May 31 '11 at 16:32
feedback

1 Answer

up vote 2 down vote accepted

You probably have to install RubyGems. Try:

yum install rubygems

If it fails, try installing it by hand:

wget http://rubyforge.org/frs/download.php/74922/rubygems-1.8.4.tgz
tar xzpvf rubygems-1.8.4.tgz
cd rubygems-1.8.4
ruby setup.rb
link|improve this answer
This worked. Thank you! – NJ01 May 31 '11 at 17:41
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.