#1 (permalink)  
Old 01-21-2008, 10:40 AM
Member
 
Join Date: Dec 2007
Posts: 92
Default HowTo : Install Ruby on Rails (ROR)

1. Install Ruby

Quote:
cd /usr/src
wget ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz
tar -xzvf ruby-1.8.6.tar.gz
cd ruby-1.8.6/
./configure
__________________________________________________ __________________
Edit defines.h if you need. (Normally, this step won't be needed.)

Remove comment mark(#) before the module names from ext/Setup (or
add module names if not present), if you want to link modules
statically.

If you don't want to compile non static extension modules
(probably on architectures which does not allow dynamic loading),
remove comment mark from the line "#option nodynamic" in
ext/Setup. ---)
__________________________________________________ ____________________

Quote:
make
make test
make install
2. Install rubygems

Quote:
cd /usr/src
wget http://rubyforge.org/frs/download.ph...gems-1.0.1.tgz
tar -zxvf rubygems-1.0.1.tgz
cd rubygems-1.0.1
ruby setup.rb
3. Install Rails

Quote:
gem install rails --include-dependencies
rails /usr/local/rails
4. Htaccess and Apache config


Open /usr/local/rails/public/.htaccess
Add
Quote:
RewriteBase /rails
just above the RewriteRules

Open httpd.conf and add the following Alias:
Quote:
Alias /rails /usr/local/rails/public
Restart http
Access using http://ipaddress/rails/
Please substitute ipaddress by server's ip.

If everything went correctly, you will see the ruby o rails Getting Started page..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:25 AM.


Powered by: vBulletin
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15