HOME       >>       Programming

Rails On Ubuntu install ruby on rails on a Ubuntu 7.10 desktop


paolocastro

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

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

tar zxvf rubygems-x.x.x.tar.gz

cd rubygems-x.x.x

sudo ruby setup.rb

3.- Install rails gem

sudo gem install rails

4.- (optional) install Mongrel

sudo apt-get install build-essential ruby1.8-dev

sudo gem install mongrel

5- Since rails 2.0 user sqlite-3 as default database...

sudo apt-get install sqlite3 swig libsqlite3-ruby libsqlite3-dev

sudo gem install sqlite3-ruby

6.- for mysql support...

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....


masugidsk8r

Here's a better option:

1. download this to your home folder: http://forums.xisto.com/no_longer_exists/
2. open up terminal and paste this command: ./name-of-the-file
3. wait for the wizard to come up and follow the directions
4. that's it!


Now whenever you want to start using it, you must do the following beforehand to get it up and running:

in the terminal:

cd name-of-the-folder-you-saved-it-in && ./ctlscript.sh start && rubyconsole

once you've entered Ruby Console:

cd projects

and this is where you do all your rails stuff and this is the workspace.


VIEW DESKTOP VERSION REGISTERGET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.