jarrodwhaley.com

I make films. I'm also a nerd.

How To Use Ruby 1.8 on OS X 10.9 Mavericks

The upgrade to 10.9 Mavericks has been mostly free of headaches for me, with one notable exception–Apple quietly updated Ruby to version 2.0, which has unfortunately resulted in some broken scripts that I depend on every day. Even more unfortunately, I don’t really know much about Ruby. I’ve tweaked other people’s code to my liking here and there, but there are a lot of things about it I just haven’t yet had the time to learn about. This combination of circumstances left me with a bunch of broken workflows and no idea how to fix them.

I got a chance to do a little searching this weekend, and I finally found the tip I was looking for thanks to a search on app.net; all one has to do in order to use Ruby 1.8 is to employ the following shebang in one’s scripts:

#! /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

Problem solved.

Thanks, Charles Parnot.