Ruby on Rails Installation Guide On Mac!

Well Guys, if you are using mac and you want to install ruby on rails, then you should need to follow this guideline.

1. First thing First, open your terminal and "Install Homebrew"
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Copy this command and paste it in your terminal.
Note: Before install homebrew, you should install (command line tool) or xcode in your mac first.
When You sure that, you have installed homebrew, now type brew doctor in your terminal.
2. Rbenv handles the installation of multiple Ruby environments.
$ brew update
$ brew install rbenv
$ brew install ruby-build
now checked the Ruby version, then 
$ rbenv install 2.0.0-p247
$ rbenv rehash
In, my case, ruby version is 2.0.0-p247. now if you didn't face any problem then be sure that, you have installed ruby properly. just type this command on your mac.
ruby --version
if you are facing oldest version of ruby, then type

$ rbenv global 2.0.0-p247
Now again type

ruby --version
Now I'm sure it will show you the correct version of ruby which you have installed correctly. Cheers!!!

Comments