Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|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

1 Answer 1

up vote 6 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
share|improve this answer
    
This worked. Thank you! –  NJ01 May 31 '11 at 17:41
    
While this works, I think it would be more ideal to install via yum and a system configured repository, rather than installing one-off RPMs. –  quickshiftin Sep 9 '13 at 19:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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