Skip to content

Rails installation

02/02/2011

Before install rails need to install some dependency package

Step1:Rubu install:

$sudo apt-get install ruby ruby-dev libopenssl-ruby1.8 irb ri rdoc

Step2:Install Mysql

if mysql allready install

$sudo apt-get install libmysql-ruby sqlite3

if mysql not install

$sudo apt-get install mysql-server sqlite3 libmysql-ruby

step3:some header files need 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 want install a particular version use this command

$sudo gem install rails -v=3.0.3

to know more http://bradhe.wordpress.com/2010/12/03/installing-sqlite3-on-linux-for-ruby-on-rails/

thanks…..

Advertisements

From → Rails

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: