Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Rails On Ubuntu, install ruby on rails on a Ubuntu 7.10 desktop
paolocastro
post Feb 8 2008, 02:12 AM
Post #1


Newbie
*

Group: Members
Posts: 3
Joined: 7-February 08
Member No.: 57,521



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....
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Ruby On Rails, Ajax, Scriptaculous, Etc.(2)
  2. Ruby On Rails - Is There Anybody(3)
  3. Ruby And Ruby On Rails?(1)
  4. [ruby]lite Multi-dimensional Array(0)


 



- Lo-Fi Version Time is now: 4th July 2008 - 10:17 PM