Setting up a dev environment (10.8 Mountain Lion Edition)

Notes to myself so I can set things up properly. Hope they’re useful to you as well.

  1. Install any OS Updates.
  2. Get XCode from the app store. Launch it, accept the license, and go to Preferences, then choose “Downloads”, and install Command Line Tools.
  3. Install XQuartz.
  4. Install Homebrew:
    ruby <(curl -fsSkL
  5. Install git from homebrew (brew install git).
  6. Install Tower.
  7. Install Sublime Text.
  8. If you need subversion, install it from homebrew. If you need to use java, make sure you pass the –java flag.

You’re pretty much set at this point. Special per-dev type notes below:


  1. Install it from homebrew! yes, even python 2.7!
    1. brew install python (installs python 2.7 at the time of this writing.)
    2. Add export PATH=/usr/local/share/python:$PATH to your .bash_profile
  2. pip install virtualenv , pip install virtualenvwrapper
  3. Make virtual environments for whatever projects you work on.


Since brew is rubyish itself, it seems you need to install (the latest) ruby on your own. As with python, I prefer to manage the environment for my rubies. The virtual environment tool for ruby is rvm. Last time there was no sexy GUI for RVM; now there is, so I used it. but it doesn’t seem to be ready for prime time.

Note: Only ruby 1.9.3-p125 and up support the llvm compiler. At the point I need a (non-system) ruby 1.8.x i’ll add info here, but for right now I don’t.

  1. Install libksba: brew install libksba
  2. Install rvm: curl -L | bash -s stable
  3. If type rvm | head -n 1 does not return “rvm is a function”, add source ~/.rvm/scripts/rvm to your .bash_profile . Not sure whether this problem was because I tried using JewelwryBox first. Without this (at least for me) rvm was not running “as a function” which messes up some functionality of rvm.
  4. Close and re-open (or open a new terminal window)
  5. Install ruby 1.9.3: rvm install 1.9.3
  6. Start using it: rvm use 1.9.3


I mostly develop java under protest, so feel free to tell me how I should “really” be doing it.

  1. I use the 64-bit j2ee eclipse ide because it had more thingies the project I work on needs.
  2. I needed subversion, so I installed it with java bindings. If you don’t do this, Subclipse will not work:
    brew install subversion --java
  3. Install subclipse by going to Help -> Install New Software, then entering the “eclipse update site URL” from the subclipse download page, then clicking “add”. Note you can name the URL whatever you want on the next screen. Then select the stuff you want etc. etc.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s