How to install RMagick on Leopard from source

This is the best tutorial I’ve found for installing rmagick on leopard from source. Installing RMagick on Leopard (without MacPorts or Fink)

 1 #!/bin/sh
       2 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz
       3 tar xzvf freetype-2.3.5.tar.gz
       4 cd freetype-2.3.5
       5 ./configure --prefix=/usr/local
       6 make
       7 sudo make install
       8 cd ..
       9 
      10 wget http://superb-west.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.22.tar.bz2
      11 tar jxvf libpng-1.2.22.tar.bz2
      12 cd libpng-1.2.22
      13 ./configure --prefix=/usr/local
      14 make
      15 sudo make install
      16 cd ..
      17 
      18 wget ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
      19 tar xzvf jpegsrc.v6b.tar.gz
      20 cd jpeg-6b
      21 ln -s `which glibtool` ./libtool
      22 export MACOSX_DEPLOYMENT_TARGET=10.5
      23 ./configure --enable-shared --prefix=/usr/local
      24 make
      25 sudo make install
      26 cd ..
      27 
      28 wget ftp://ftp.remotesensing.org/libtiff/tiff-3.8.2.tar.gz
      29 tar xzvf tiff-3.8.2.tar.gz
      30 cd tiff-3.8.2
      31 ./configure --prefix=/usr/local
      32 make
      33 sudo make install
      34 cd ..
      35 
      36 wget http://jaist.dl.sourceforge.net/sourceforge/wvware/libwmf-0.2.8.4.tar.gz
      37 tar xzvf libwmf-0.2.8.4.tar.gz
      38 cd libwmf-0.2.8.4
      39 make clean
      40 ./configure
      41 make
      42 sudo make install
      43 cd ..
      44 
      45 wget http://www.littlecms.com/lcms-1.17.tar.gz
      46 tar xzvf lcms-1.17.tar.gz
      47 cd lcms-1.17
      48 make clean
      49 ./configure
      50 make
      51 sudo make install
      52 cd ..
      53 
      54 wget http://ufpr.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-8.60.tar.gz
      55 tar zxvf ghostscript-8.60.tar.gz
      56 cd ghostscript-8.60/
      57 ./configure  --prefix=/usr/local
      58 make
      59 sudo make install
      60 cd ..
      61 
      62 wget http://ufpr.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-fonts-std-8.11.tar.gz
      63 tar zxvf ghostscript-fonts-std-8.11.tar.gz
      64 sudo mv fonts /usr/local/share/ghostscript
      65 
      66 wget http://imagemagick.site2nd.org/imagemagick/ImageMagick-6.3.5-9.tar.gz
      67 tar xzvf ImageMagick-6.3.5-9.tar.gz
      68 cd ImageMagick-6.3.5
      69 export CPPFLAGS=-I/usr/local/include
      70 export LDFLAGS=-L/usr/local/lib
      71 ./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
      72 make
      73 sudo make install
      74 cd ..
      75 
      76 sudo gem install RMagick
      

Picture of Scott Motte

delicious facebook rss twitter

Spitfire Sky | github | archives | resume