AWS Redhat RHEL Install Ruby and Rails

From Hawk Wiki
Revision as of 18:09, 30 March 2015 by Hall (Talk | contribs) (Created page with "==Install latest ruby== #Note, in Redhat, this will install into /user/local directory #By default, typing command ruby does not work. You would have to use /user/local/bin/ru...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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