November 27, 2006

by @ 4:49 am. Filed under Uncategorized

Hello,

Ruby (Ruby on Rails) is a language of careful balance. Its creator,
Yukihiro “matz” Matsumoto, blended parts of his favorite languages
(Perl,Smalltalk, Eiffel, Ada, and Lisp) to form a new language that
balanced functional programming with imperative programming.
It is a dynamic, open source programming language with a focus
on simplicity and productivity. It has an elegant syntax that is
natural to read and easy to write as well it has fantastic features.
The installation for Ruby goes as below.You need to perform this
installation on shell ::

1] cd /usr/local/src/

2] wget ftp.ruby-lang.org/pub/ruby/ruby-1.8.2.tar.gz
wget rubyforge.org/frs/download.php/3700/rubygems-0.8.11.tgz
wget fastcgi.com/dist/fcgi-2.4.0.tar.gz
wget fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz

Here the ruby version will change according to the latest release
at http://www.ruby-lang.org/en/ .Accordingly you will have to
download the compatible version of rubygems.You also need
fastcgi on the server for Ruby.So you must check the fastcgi
dependency of Ruby according to the Ruby version to be installed.

3] Untar the tar downloads one-by-one.
tar zxf ruby-1.8.2.tar.gz

tar zxf rubygems-0.8.11.tgz

tar zxf fcgi-2.4.0.tar.gz

tar zxf mod_fastcgi-2.4.2.tar.gz

4] cd ruby-1.8.2

./configure && make && make install

cd ..

5] cd rubygems-0.8.10

ruby setup.rb

cd ..

6] gem install rails

7] cd fcgi-2.4.0

./configure && make && make install

cd ..

8] cd mod_fastcgi-2.4.2

/usr/local/apache/bin/apxs -o mod_fastcgi.so -c *.c

/usr/local/apache/bin/apxs -i -a -n fastcgi mod_fastcgi.so

cd ..

9] mkdir /tmp/fcgi_ipc/

mkdir /tmp/fcgi_ipc/dynamic/

chmod -R 777 /tmp/fcgi_ipc/

cat > ~/httpd.conf

FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
FastCgiWrapper On

EOT

10] gem install fcgi

11] httpd restart

Here completes the installation.The further dependencies or
requirements for Ruby can be fulfilled accordingly after it’s trial/use.

Leave a Reply

You must be logged in to post a comment.

RESELLER HOSTING | DEDICATED SERVER | PREMIUM HOSTING | VPS HOSTING

Micfo Hosting

Micfo International LLC Leading the hosting Industry with Cheap and Affordable Linux Web Hosting Packages.

internal links:

categories:

archives:

Services:

Micfo Hosting

Micfo, delivering the best cpanel web hosting with maximum reliability is our exclusive focus.
Micfo International LLC

search blog:

TOP 10 POSTS:

Pages:

General Links:

Syndicate

other:

35 queries. 0.098 seconds