Friday, February 10, 2012

Installing Ruby and Rubygems on Linux

ruby-1.8.7-p174.tar
rubygems-1.3.7.tar

Copy this files into the linux machine.
exc : /opt
---------------------------------------
Before installation, Check zlib package availablity.

zlib-1.2.3-3.i386.rpm
zlib-devel-1.2.3-3.i386.rpm

Its better installed both once agailn. Its available in RHEL5 cd.

#rpm -ivh zlib* --force

-------------------------------------------------------

Install Ruby.

- Copy ruby-1.8.7-p174.tar into opt/
-Provide permission
#cmhod 777 ruby-1.8.7-p174.tar

-Install
#tar -xvsf ruby-1.8.7-p174.tar

-Provide permission to the ruby-1.8.7-p174 folder
#chmod -R 777 ruby-1.8.7-p174

#cd ruby-1.8.7-p174

#./configure

#make

#make install

-Come out and check installation.
#ruby -v
----------------------------------------------------
Install Rubygems.


Copy rubygems-1.3.7.tar into opt/
-Provide permission
#cmhod 777 rubygems-1.3.7.tar

-Install
#tar -xvsf rubygems-1.3.7.tar

-Provide permission to the ruby-1.8.7-p174 folder
#chmod -R 777 rubygems-1.3.7

---> Connetct to the Direct network and install
the remaining support apps( gems) for rubygems.

-Run setup file from rubygems.
#ruby /opt/rubygems-1.3.7/setup.rb

-Install other apps from outer network.
#gem install getopt –version 1.4.0

#gem install rdiscount --version 1.6.5

#gem install rdoc --version 2.3.0

and check,
#gem list

=======================================

No comments:

Post a Comment