The following are my steps for configuring a new development machine running OSX Yosemite.
You should see something like
/Applications/Xcode.app/Contents/Developeras output. If this does not work, try running:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Confirm that this worked by checking the version number (e.g.
Install a “version manager” for Ruby and Rubygems, which allows you to switch between older and newer versions as required. Both RVM and rbenv are great for this purpose, but I tend to agree with the reasons for rbenv given by its author.
To install rbenv:
brew install rbenv
Carefully follow the post-installation instructions, and in particular, the step that involves adding
eval "$(rbenv init -)"to your profile script (usuall either .bashrc or .zshrc). Confirm that this worked by checking the version number (e.g.
rbenv 0.4.0) in a new terminal window.
Install the ruby-build plugin, which simplifies installing new Ruby versions.
brew install ruby-build
Install a recent version of Ruby to use globally.
rbenv install 2.2.1 rbenv global 2.2.1
Open a new terminal window, and test that the desired version of Ruby is being used (should say something like
For Java work (including Android below) download the Java Development Kit. Once installed, confirm it by checking the version number (e.g.
By default, the Android SDK does not include everything you need to start developing.
Therefore, follow up with the Adding SDK Packages section.
sudo scutil --set HostName example
That’s all for now. By the way, I’m currently using a MacBook Pro Retina, 15-inch, Early 2013, 2.4 GHz Intel Core i7, 16 GB 1600 MHz DDR3.