Saturday, June 6, 2009

Setup rails on ubuntu

Today I have setup RoR environment on my laptop installed with ubuntu 8.03

Here are the things I have done:

1. sudo apt-get install ruby

2. sudo apt-get install rubygems

#The gem installed is not working because of some deprecated lib, so I have to do a few more steps:
gedit ~/usr/bin/gem
#Make the first three lines looks like below:
require 'rubygems'
require 'rubygems/gem_runner'
#Gem.manage_gems

3. sudo gem update --system

4. sudo gem install rails

5. sudo apt-get install mysql-server

6. sudo apt-get install libmysqlclient15-dev

7. sudo gem install mysql

8. Copy my .profile content to .bash_aliases (new file)
gedit ~/.bashrc
uncomment the following lines in .bashrc file:
if[ -f ~/.bash_aliases]; then
.~/.bash_aliases
fi

9. Install Java (in order to install NetBean)
sudo gedit /etc/apt/sources.list
Add the following if now there
deb http://us.archive.ubuntu.com/ubuntu feisty main restricted
deb http://us.archive.ubuntu.com/ubuntu feisty universe multiverse

sudo apt-get update

sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin


That's it!!

No comments :

Post a Comment