Pages

Saturday, February 12, 2011

Rails Installation

       Installation of  rails and mysql

step1:Ruby installation:
$sudo apt-get install ruby ruby-dev libopenssl-ruby1.8 irb ri rdoc

Step2:Install Mysql
 if mysql allready installed in your computer give the below command
$sudo apt-get install libmysql-ruby sqlite3

if mysql not install in your computer
$sudo apt-get install mysql-server sqlite3 libmysql-ruby

step3:some header files needs to install for compile
$sudo apt-get install build-essential libmysqlclient-dev libmysql-ruby libsqlite3-ruby libsqlite3-dev

Step4:Need gem install
$sudo apt-get install rubygems

Step5:install mysql,rails,sqlite3-ruby mongrel through rubygems
$ sudo gem install rails mysql sqlite3-ruby mongrel
if this show errors
$sudo apt-get install rails rails-doc rails-ruby1.8
then retry this
$ sudo gem install rails mysql sqlite3-ruby mongrel
Rails successfully install your system..
To check if is install
open terminal
$rails -v
Rails 3.0.3

   if you have any doubt in installation in rails and mysql  go throught the blog
    http://www.coachfactory.blogspot.com/  you can get clear idea about this

No comments:

Post a Comment