|
Oct
13
|
How to install Ruby on Rails In Linux
$ su -
# yum install ruby ruby-rdoc ruby-irb
Note: If you get an error, similar to the following, just wait a while and try the above command again.
Loading “installonlyn” plugin
Existing lock /var/run/yum.pid: another copy is running as pid 2321. Aborting.
Note: If you get something similar to the following, just enter y.
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Importing GPG key 0×4F2A6FD2 “Fedora Project ” from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Is this ok [y/N]:
Install RubyGems via source
Note: Note: Latest version of RubyGems (1.3.3) .
Enter into the Terminal:
cd /tmp
wget http://rubyforge.org/frs/download.php/20989/rubygems-0.9.4.tgz
tar -zxvf rubygems-0.9.4.tgz
cd rubygems-0.9.4
# ruby setup.rb
Install Ruby on Rails using RubyGems
Enter into the Terminal:
# gem install -y rails
To check the installed gems on your local machine
gem list –local