Installing the RMagick gem on Mac OSX Leopard

If you’re having problems installing the RMagick gem on Leopard and you’re not using MacPorts, this info may help.

First, ensure you have the latest version of the UNIX developer tools from your Leopard CD. Otherwise, you’ll see errors like

ERROR: Failed to build gem native extension.
configure: error: C compiler cannot create executables
See `config.log' for more details.
RMagick configuration failed with status 77.

Then, download the RMagick OSX Installer available in Rubyforge. It’s a Ruby script which retrieves all of the required dependencies and then builds them and RMagick.

Finally, install the gem:

sudo gem install rmagick

About this entry