Friday, December 21, 2012

How to install ruby 1.9 on CentOS 5

Recently I had to install ruby 1.9.1 on a CentOS 5 machine. I had a hard time in finding the right commands to do this simple task. So I am sharing the steps here:
cd /usr/local/src
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p376.tar.gz
tar xzvf ruby-1.9.1-p376.tar.gz
cd ruby-1.9.1-p376
./configure && make
sudo make install

No comments:

Post a Comment