Installing Ruby on Rails in Ubuntu Hardy Heron (8.04 Lts)

1. First Install ruby and rails dependencies
$ sudo apt-get install ruby irb ri rdoc ruby1.8-dev libzlib-ruby libyaml-ruby libreadline-ruby libncurses-ruby libcurses-ruby libruby libruby-extras libfcgi-ruby1.8 build-essential libopenssl-ruby libdbm-ruby libdbi-ruby libdbd-sqlite3-ruby sqlite3 libsqlite3-dev libsqlite3-ruby libxml-ruby libxml2-dev
2. Download rubygems from ruby forge.
3. Extract the contents and change directory into the recently created rubygems directory.
4. Run setup
$ sudo ruby setup.rb
5. Make the link
$ sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
6. Run update
$ sudo gem update --system
7. In case you get the

Uninitialized constant Gem::GemRunner

just follow the instructions in my post with that title.
8. Install Rails from gems
$ sudo gem install rails
$ sudo gem install sqlite3-ruby mongrel capistrano

9. If you want to use MySql
sudo apt-get install mysql-server mysql-client libdbd-mysql-ruby libmysqlclient15-dev

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: