Installing the Heroku Toolbelt on a PowerPC Mac running OS X

So you’re still using a PowerPC Mac, and you need to deploy some stuff on Heroku. (Yes, that combination of traits exists, I’m living proof.) Tigerbrew is a lovely PowerPC port of Homebrew for OS X (and it mostly works on Leopard, despite the name). PPC holdouts cannot thank Misty De Meo enough for all her work on it, but as of this writing, heroku-toolbelt doesn’t work out of the box.

Actually, because of this writing and because of Misty De Meo’s awesome bug-squashing prowess, this now does work out of the box, and automatically compiles the necessary version of Ruby for you as well; be prepared for a long wait while it builds, at least on slower Macs, but it works!

Here’s how to install heroku-toolbelt on your old PPC Mac running OS X 10.4 or 10.5.  You will need to be comfortable with the terminal, of course.

The build infrastructure

This post assumes that you are familiar with Homebrew and that you can get Tigerbrew installed on your Mac on your own.  It’s not too bad.

Install heroku-toolbelt

$ brew update     # do not skip this esp in Tigerbrew
$ brew install heroku-toolbelt

Sweet, after like 2 hours on a 1.25GHz G4, we’re done!  Run heroku and make sure that it prints some useful output, and not the following.

$ heroku
-bash: /usr/local/heroku/bin/heroku: /usr/local/heroku/ruby/bin/ruby: bad interpreter: Bad CPU type in executable

If the above does happen, you may have a rogue installation of heroku.  Do a which heroku, find it, and delicately delete it, then try again.


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

%d bloggers like this: