Monday, July 23, 2012

ruby and rails installation on ubuntu


Installation of ruby and rails in ubuntu

to install ruby and rails in ubuntu 10.10 follow the procedure for the installation of ruby & rails
to install ruby

#apt-get install ruby-full
after this the ruby will be installed

then after this for download the ruby gems
#wget production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz

after this the rubygems will be downloaded as a .tar file then extract the the downloaded file
#tar-xvf rubygems-1.3.7.tgz

after this move to th rubygem directory
#cd rubygems-1.3.7/

after this install the rubygems
#ruby setup.rb

here the ruby gem will be installed
create link file the gems
#ln -s /usr/bin/gem1.8 /usr/bin/gem

then insall gem like this
#gem install rdoc

for the installation of rails 2.3.8 version of rails
#gem install –version=2.3.8 rails --include-dependencies
after this the ruby and rails will be installed

after this install the below package for the installation of mysql gem
#apt-get install libmysql-ruby libmysqlclient-dev

#gem install mysql
here the gem for mysql will be installed

No comments:

Post a Comment