geekchick77: (Default)
Jessamyn Smith ([personal profile] geekchick77) wrote2012-05-06 12:10 am

Developing on Mac OS 10.7.3

I am a bit annoyed at how difficult it is to get a working development environment on Mac OS these days.

I started out by installing homebrew, which is simple enough. I tried running brew doctor and got a message about how my XCode was out of date.

I have no idea why you can't just download XCode from Apple's site. I don't use my Apple login often enough to be able to remember it, so I always have to hunt around before I am able to log in. Next up was navigating the App Store, which was non-obvious to me. It took me quite a while to realize I had to click the "Free" button beside the dropdown to start the download. After waiting for the rather lengthy download, I discovered that installing XCode is no longer enough to give you command line tools. You are supposed to be able to install them from inside XCode, but I could not see them under Downloads. In the end, I logged back into Apple's site, at, and searched for Command Line Tools for XCode. I picked the most recent version, and downloaded and installed that.

I usually add the following to my .bashrc so my brew installations are found ahead of any system installations:
export PATH=/usr/local/bin:$PATH

Finally, I was able to run brew doctor and get on with my project!
Next time you need to set it up, consider using this instead of installing xcode: