Notes to myself so I can set things up properly. Hope they’re useful to you as well.
- Install any OS Updates.
- Get XCode from the app store. Launch it, accept the license, and go to Preferences, then choose “Downloads”, and install Command Line Tools.
- Install XQuartz.
- Install Homebrew:
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
- Install git from homebrew (
brew install git).
- Install Tower.
- Install Sublime Text.
- 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:
- Install it from homebrew! yes, even python 2.7!
brew install python(installs python 2.7 at the time of this writing.)
export PATH=/usr/local/share/python:$PATHto your .bash_profile
pip install virtualenv,
pip install virtualenvwrapper
- 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.
- Install libksba:
brew install libksba
- Install rvm:
curl -L https://get.rvm.io | bash -s stable
type rvm | head -n 1does not return “rvm is a function”, add
source ~/.rvm/scripts/rvmto 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.
- Close and re-open Terminal.app (or open a new terminal window)
- Install ruby 1.9.3:
rvm install 1.9.3
- 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.
- I use the 64-bit j2ee eclipse ide because it had more thingies the project I work on needs.
- I needed subversion, so I installed it with java bindings. If you don’t do this, Subclipse will not work:
brew install subversion --java
- 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.