Thursday, February 10, 2011

Setup Ruby on Rails 3 for development on Ubuntu 10.10 aka Maverick Meerkat

Installation on Ruby on Rails 3 on Ubuntu 10.10 is really easy peasy, However Ruby doesn't come pre-installed on Ubuntu like Python and Perl. To start of with installation of development tools for Rails we first need to install basic build tools like Compilers collection etc. There is handy packaged pre-built for that in Canonical repositories:

Assuming you want to use My SQL server with Rails next we would need to setup Ruby, My SQL Server and Client as well as some other essential tools:

Now that Ruby and My SQL is setup We need to pull the latest version of Rubygems at run setup as a super user:

In case you want to Sqlite 3 as development database with Rails 3 you may want to install that as well:

As a last step install latest version on Ruby on Rails framework gems:

Now Ruby on Rails 3 is setup on your machine you can proceed with creating a new project and pulling in all the dependencies with bundler.