What is Ruby on Rails ?

Ruby on Rails was extracted by David Heinemeier Hansson from his work on Basecamp, a project management tool by 37signals (now a web application company). Heinemeier Hansson first released Rails as open source in July 2004, but did not share commit rights to the project until February 2005. In August 2006 the framework reached a milestone when Apple announced that it would ship Ruby on Rails with Mac OS X v10.5 "Leopard", which was released in October 2007.

What is Readline Library ?

The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are typed in. Both Emacs and vi editing modes are available. The Readline library includes additional functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those lines, and perform csh-like history expansion on previous commands.

What is Rubygems ?

RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a "gem"), a tool designed to easily manage the installation of gems, and a server for distributing them. It is analogous to EasyInstall for the Python programming language. RubyGems is now part of the standard library from Ruby version 1.9.

Login as root into your server

Installing Readline

#cd /root
#wget ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz
#tar -zxvf readline-6.0.tar.gz
#cd readline-6.0
#./configure --prefix=/usr/local
#make && make install

Installing Ruby

#cd /root
#wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz
#tar -zxvf ruby-1.8.7-p174.tar.gz
#cd ruby-1.8.7-p174
#./configure --prefix=/usr/local \
--enable-pthread \
--with-readline-dir=/usr/local \
--enable-shared
#make && make install

Installing Rubygems

#cd /root
#wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
#tar -zxvf rubygems-1.3.5.tgz
#cd rubygems-1.3.5
#ruby setup.rb

Installing Rails

With Rubygems loaded, you can install all of rails and it's dependencies through the command line :

#gem install rails --include-dependencies

OPTIONAL :  Make your application

Example :

#rails path/to/your/new/application
#cd path/to/your/new/application
#ruby script/server

If everything success. you're running ruby on rails on http://localhost:3000

ShareThis
Post new comment
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Use the special tag [adsense:format:slot] or [adsense:format:[group]:[channel][:slot]] or [adsense:block:location] to display Google AdSense ads.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

ShoutBox


ShoutMix chat widget

User login

Who's online

There are currently 0 users and 6 guests online.


Poll

What is your favorite Virtualization Server ?:
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
3 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Recent comments

Alexa