Install Ruby on Rails

I am embarking on a Ruby on Rails adventure to learn more about it. I hear it has great things so I started my own rails rig in my virtual machine. I am still a .NET guy but I would be a fool not to learn more about this great language and platform.

I used sqlite3 into this install but feel free to use a different database.

Base rig:

  1. VirtualBox
  2. Ubuntu

Ruby and Rails framework installation:

  1. Login to Ubuntu.
  2. Make sure your Ubuntu is up to date:
    sudo apt-get update
    sudo apt-get dist-upgrade
  3. Install base build tools. You need this to install other packages so do not skip this:
    sudo apt-get install build-essential
  4. Install Ruby:
    sudo apt-get install ruby ruby1.8-dev
  5. Install RubyGems:
    sudo apt-get install rubygems
  6. Install Rake:
    sudo gem install rake
  7. Install Rails:
    sudo gem install rails
  8. Install sqllite3:
    sudo apt-get install sqlite3 libsqlite3-dev
    sudo gem install sqlite3-ruby
  9. Install Gherkin
    sudo gem install gherkin
  10. Install Rspec:
    sudo gem install rspec-rails
  11. Install Webrat:
    sudo apt-get install libxslt1-dev libxml2-dev
    sudo gem install webrat
  12. Install Cucumber:
    sudo gem install cucumber
  13. Install Mongrel:
    sudo gem install mongrel

This is it…