Installing rmagick on FC4
October 9th, 2006
Installing rmagick on FC4 should be easy. At first glance it wasn't:
configure: error: Can't install RMagick. Can't find libMagick or one of the dependent libraries.
Check the config.log file for more detailed information.
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
The config.log ends with the unhelpful line ###Failed. Hmmm. Shy and obtuse log files are the suck.
After reading the rmagick faq, I found that you need to search for the following string "InitializeMagick" and look for the gcc output somewhere below that. This gives the reason for the failure (i.e. which dependent library isn't around). On my installation the devel rpms for libjpeg and libtiff weren't installed.
In closing, here's the complete set of commands I had to perform (FC4). If you get the error mentioned above, you know what to do to fix it.
sudo yum install ImageMagick* sudo yum install libjpeg* sudo yum install libtiff* sudo gem install rmagick