Difference between revisions of "AWS Redhat RHEL Install Ruby and Rails"

From Hawk Wiki
Jump to: navigation, search
(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...")
 
(Install latest ruby)
 
Line 15: Line 15:
  
  
//A simple method but the installed version is not latest.
+
A simple method but the installed version is not latest.
 
<pre>
 
<pre>
 
sudo yum install rubygems
 
sudo yum install rubygems
 
</pre>
 
</pre>
 +
 
==Install bundler==
 
==Install bundler==
 
<pre>
 
<pre>
 
gem install bundler
 
gem install bundler
 
</pre>
 
</pre>

Latest revision as of 18:09, 30 March 2015

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