6

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?

NJ01
  • 219

2 Answers2

14

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
0

Run the command below:

whereis gem

/usr/local/bin/gem

cp /usr/local/bin/gem /sbin

gem -v

2.5.1