install ruby from source code

From WebHostingNeeds.com
Jump to: navigation, search

Download latest source code from

http://www.ruby-lang.org/en/downloads/

To install Ruby from source, do the following.

cd /usr/local/src
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p111.tar.gz
tar -zxvf ruby-1.8.6-p111.tar.gz
cd ruby-1.8.6-p111
./configure
make
make install

If you have yum installed, you can install Ruby with

yum install ruby