Search

User login

Poll

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

My YM

Author Information

sentono
Offline
Last seen: 2 days 14 hours ago
Joined: 09/21/2007

Alexa Rank

Who's online

There are currently 0 users and 17 guests online.
Home
  • warning: Invalid argument supplied for foreach() in /usr/home/wowtutorial/public_html/sites/all/modules/adsense_injector/adsense_injector.module on line 352.
  • warning: Invalid argument supplied for foreach() in /usr/home/wowtutorial/public_html/sites/all/modules/adsense_injector/adsense_injector.module on line 35.

How to Install Ruby on Rails in Linux Server

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

Comments

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.

More information about formatting options

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

Recent comments

Facebook Fans

Sponsors

Online Store

Tag Cloud