Jump to content
xisto Community
Sign in to follow this  
paolocastro

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

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.