thoughtbot New Bamboo is now part of thoughtbot

Read the announcement
Lee Machin

3 Quick Tips for Coding with OS X 10.9 Mavericks

by

Mavericks is here and it’s free! All very exciting. As usual, there will be a few hiccups when performing the upgrade, but for the most part the transition will be silky smooth.

Here are three quick things you can do to get your machine working nicely with Mavericks again:

1. Get Xcode Developer Tools Back

All you need to do is run xcode-select --install in your terminal.

2. Reinstall Homebrew Packages

The Homebrew maintainers tweeted that if you rely on Homebrew for your job, you probably shouldn’t upgrade yet.

Clearly this is the sensible approach. However, if - like me - you went ahead and did it anyway, there’s a reasonable but potentially laborious workaround.

For every new package you install or update, you will have to re-install any of its dependencies that you previously installed on a previous version of OS X. This is because libstdc++ has been removed in favour of libc++, and things compiled with one aren’t compatible with the other.

There’s no nicer way to get around this than to do the following:

brew uninstall $PACKAGE && brew install $PACKAGE

In some instances this won’t get you very far, but for the common cases a Ruby developer may encounter, you’ll be alright.

3. Bring GCC 4.2 Back

Running bundle install or bundle upgrade might result in other errors. You’ll very likely need to re-install GCC 4.2, which you can do by running:

brew tap homebrew/versions && brew install apple-gcc42
brew link --force apple-gcc42
ln -nsf $(which gcc-4.2) /usr/bin/gcc-4.2

That’s it! You’re good to develop on the new OS. If you’re still not sure
whether you should, check out Ars Technica’s review of Mavericks.