Hi, i'm a ruby on rails fan, and also an ubuntu user, i would like to share the steps i've been through in order to install ruby on rails.
Some of you might noticed that there is a rails package available in ubuntu, but i think it's better not user these package. instead i download the rails gem with rubygems package manager. here is the walk through:

1.- install ruby using the apt-get tool
QUOTE
sudo apt-get install ruby rdoc irb libyaml-ruby libzlib-ruby ri libopenssl-ruby

2.- Install rubygems manually from source.
download the latest rubygems tarball from RubyForge
QUOTE
tar zxvf rubygems-x.x.x.tar.gz
cd rubygems-x.x.x
sudo ruby setup.rb

3.- Install rails gem
QUOTE
sudo gem install rails

4.- (optional) install Mongrel
QUOTE
sudo apt-get install build-essential ruby1.8-dev
sudo gem install mongrel

5- Since rails 2.0 user sqlite-3 as default database...
QUOTE
sudo apt-get install sqlite3 swig libsqlite3-ruby libsqlite3-dev
sudo gem install sqlite3-ruby

6.- for mysql support...
QUOTE
sudo apt-get install mysql-client mysql-admin mysql-query-browser libmysqlclient15-dev
sudo gem install mysql


For developing rails applications, i would recommend netbeans6, it has a good ruby support, easy generators, plugins manager and also gems manager. but in order to use the gem manager you need to have the proper permissions on the gems folder /usr/lib/ruby/gems/

Hope these helps somebody....

 

 

 


Reply