How to Install Ruby on Rails (ROR) in Ubuntu
Sponsored Link
Install Ruby on Rails (ROR) on Ubuntu
First we need to install Ruby and irb (Interactive ruby shell) and we'll 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 we need to install RubyGems. We are going to install RubyGems with the following command
sudo apt-get install rubygems
Then we'll 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 we will install rails with command
sudo gem install rails --include-dependencies
Thats it 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
Thank you !
Thanks, worked perfectly.