Building RMagick on OS X

I’d always heard that building RMagick was supposed to be just this side of Hell. However, some intrepid soul (I’m sorry, I lost the original post), listed several steps for building RMagick. I put these steps together into a single bash script that downloaded everything that I needed and built RMagick with only a few complaints and what seems to be a working final product. Just beware that the script is nothing fancy, i.e., it is hard-coded to what I believe are the current versions of the RMagick dependencies.

Follow the link for the script.


tar vzxf ghostscript-fonts-std-8.11.tar.gz sudo mv fonts/ /usr/local/share/ghostscript/fonts/

curl -O tar xzvf freetype-2.1.10.tar.gz cd freetype-2.1.10 ./configure –prefix=/usr/local make sudo make install cd ..

curl -O bzip2 -dc libpng-1.2.10.tar.bz2 | tar xv cd libpng-1.2.10 ./configure –prefix=/usr/local make sudo make install cd ..

curl -O tar xzvf jpegsrc.v6b.tar.gz cd jpeg-6b ln -s which glibtool ./libtool export MACOSXDEPLOYMENTTARGET=10.4 ./configure –enable-shared –prefix=/usr/local make sudo make install cd ..

curl -O tar xzvf tiff-3.8.2.tar.gz cd tiff-3.8.2 ./configure –prefix=/usr/local make sudo make install cd ..

curl -O tar xzvf ImageMagick-6.3.0-0.tar.gz cd ImageMagick-6.3.0 export CPPFLAGS=-I/usr/local/include export LDFLAGS=-L/usr/local/lib ./configure –prefix=/usr/local \ –disable-static –with-modules –without-perl \ –without-magick-plus-plus –with-quantum-depth=8 \ –with-gs-font-dir=/usr/local/share/ghostscript/fonts make sudo make install cd ..

Posted by evan on Sunday, September 09, 2007

blog comments powered by Disqus