Web zitanos.blogspot.com www.digg.com

Tuesday, April 18, 2006

Installing Ruby on Rails on Ubuntu Linux

These are the steps I took to get Ruby on Rails up and Running on Ubuntu.
Go to the Terminal (Applications > Accessories > Terminal) and run the following apt-get commands.

1) Install ruby and ruby on rails
sudo apt-get install ruby rails


2) Download and Extract Ruby Gems
Ruby Gems .tgz file


3) After extracting the Ruby Gems file, navigate to it in your terminal and type :
sudo ruby setup.rb


4) Next we need to install all of Rails. To do this just type at the terminal
sudo gem install rails --include-dependencies


5) After that is finshed you have rails up and running. To create an application first navigate to the folder you want your app to be stored and type:
rails "Application Name"

where "Application Name" is the name of your application. eg (rails Demo).

6) Now just run
ruby script/server

and your're up and running. Open your trusty browser and navigate to http://0.0.0.0:3000 and you should see your application.

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home