Monday, May 14, 2012

Ruby on Rails Install

Ruby : http://www.ruby-lang.org/en/
RubyForge : http://rubyforge.org/
Installing libyaml
$ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
$ tar xzvf yaml-0.1.4.tar.gz
$ cd yaml-0.1.4
$ ./configure --prefix=/usr
$ make
$ make install
Installing Ruby-1.9.3-p194
$ wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
$ tar xzvf ruby-1.9.3-p194.tar.gz
$ cd ruby-1.9.3-p194
$ ./configure --enable-shared --enable-pthread --prefix=/usr
$ make
$ make install
Check version
$ ruby -v
$ gem --version
Gem update
$gem update --system
$gem update 
Installing Rails
$gem install rdoc
$gem install rails
Installing MySQL
 If you installed MySQL before, you must remove it first.
 MySQL please install mysql mysql-devel mysql-server.
 $gem install mysql2

No comments:

Post a Comment