Setup Ruby on Rails Environments
06 Dec 2014-
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)” $ brew doctor
-
Ruby:
$ brew install rbenv $ brew install ruby-build // Add eval "$(rbenv init -)" to .bash_profile $ source ~/.bash_profile $ rbenv rehash $ rbenv global 2.0.0-p481
-
$ gem update —system
-
Rails:
$ gem install bundler $ rbenv rehash $ gem install rails --version 4.1.4 $ rbenv rehash
-
MySQL:
$ brew install mysql $ mysql.server start $ mysql -u root $ gem install mysql2