Pengen Punya WebSite instan kualitas intan ?

Friday, April 23, 2010

Install Ruby on Rails in OpenSUSE 11.0

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
#rails /usr/local/ruby/apps
#cd /usr/local/ruby/apps/
#ruby script/server

Tes from browser : http://yourdomain:3000

source:http://www.wowtutorial.org/tutorial/310.html

2 comments:

ballPtPenguin said...

awesome. This worked great. Thanks for the walkthrough. I substituted the latest versions of everything and had success. Now I'm riding Rails on OpenSUSE 11.3!

lucky said...

Nice to know lots of people eager to make Ruby on Rails more lives

Post a Comment