As I’ve been putting my dev environment back together on Leopard, I’ve been finding all kinds of things that don’t quite work right – see my earlier post on MySQL.
The latest problem I’ve found occurs when attempting to gem install RMagick. I get this error:
Can't install RMagick 2.2.0. Can't find Magick-config in /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/kimball/bin/:/usr/local/mysql/bin
So, I dug about on the intertubes and found this post, which provided a script I slightly modified to do the install (I had to change the wget to curl, and also had to adjust the versions of a few things to make everything compile happily together). This does not use Fink or Ports for the RMagick install, but does use Gem to install the necessary Ruby RMagick goop.
So, here’s what you do: Create a directory somewhere that will contain the build files for all the RMagick dependencies etc, and in that directory create a quick shell script file. I named mine InstallRMagickGem.sh. Change the permissions to +x for the shell file, stuff the following into it, then run it. NOTE: Since much of this is run using sudo, you’ll need to know that the sudo password auth will likely timeout between some of the sudo calls. So, you may want to babysit it a bit.
Leave a Reply