Web Hosting | Hosting News Blog

« Create Remote login page for cPanel | Home | How to Install name servers on Linux cPanel server »

Ruby on rail Installation on Ubuntu

By bob | July 29, 2008

Ruby on rail Installation on Ubuntu:

You need to  install Ruby and irb (Interactive ruby shell) and add ri and rdoc. The recommended Ruby version for rails is 1.8.5.

Open your terminal and type

sudo apt-get install ruby irb ri rdoc ruby1.8-dev2.2

Then you need to install RubyGems with the following command:

sudo apt-get install rubygems

Then you need to update RubyGems with the following command

sudo gem update –systemNow

we have the correct version, and best of all when we want to uninstall it we can just do it with synaptic.

Now you will install rails with command

sudo gem install rails –include-dependencies

Now you have successfully installed Ruby on Rails.

To create new project type

rails name_of_app

How to uninstall Ruby on Rails (ROR) in Ubuntu

To uninstall all first remove rails gem

sudo gem uninstall rails

and then uninstall rubygems and ruby

sudo apt-get remove rubygems ruby irb ri rdoc ruby1.8-dev

Topics: web development |

Comments