Sunday, 16 March 2014

Installing ruby on rails ubuntu 12.04


Lets start by installing a ruby enviroment by
runninh this on your terminal


$ git clone git://github.com/sstephenson/rbenv.git .rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bashrc
$ echo 'eval "$(rbenv init -)"' >> .bashrc

then

$ source ~/.bash_profile

Install ruby-build

$ git clone git://github.com/sstephenson/ruby-build.git
$ cd ruby-build
$ sudo ./install.sh


install ruby

$ rbenv install 2.0.0-p247

Then install rails

$gem install rails -v 3.2.16

You are done , welcome to the world of ROR

No comments:

Post a Comment