AWS Redhat RHEL Install Ruby and Rails

From Hawk Wiki
Jump to: navigation, search

Install latest ruby

  1. Note, in Redhat, this will install into /user/local directory
  2. By default, typing command ruby does not work. You would have to use /user/local/bin/ruby
sudo yum groupinstall "Development Tools"
sudo yum install openssl-devel
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar xvfvz ruby-2.1.2.tar.gz
cd ruby-2.1.2
./configure
make
sudo make install

But you need some extra setup in order to use the installed ruby.


A simple method but the installed version is not latest.

sudo yum install rubygems

Install bundler

gem install bundler