Development Environment
Setup for web development with PHP, Ruby and Python.
Install Command Line Tools for your mac version (https://developer.apple.com/downloads/)
For version control, download from (https://git-scm.com/download/mac)
Delete ruby references from /usr/bin
$ sudo rm /usr/bin/ruby
$ sudo rm /usr/bin/rails
$ sudo rm /usr/bin/gem
Clone the project rbenv
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
Add binaries to system PATH .bashrc
or .zshrc
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
Clone ruby-build
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
And finally install ruby
$ rbenv install 2.2.3
$ rbenv global 2.2.3
$ gem install rake
$ gem intall bundle