
I work with Ruby on Leopard and and I need RMagick.
If you are a programmer and don’t know what RMagick is, you should know how code can melt your picture into art in Ruby:).
Thanks to Onrails.org for the starting script, I have removed some cruft and added some spice.
RMagicK install tastes good with freshly brewed UpTown coffee.
#!/bin/sh
mkdir -p ~/Scripts
cd ~/Scripts
if [ -d ImageMagickInstall ]
then
# remove old ImageMagickInstall directory if it exists
rm -rf ImageMagickInstall
fi
cd ~/Scripts/ImageMagickInstall
curl -O http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz
tar xzvf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O http://superb-west.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.22.tar.bz2
tar jxvf libpng-1.2.22.tar.bz2
cd libpng-1.2.22
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
tar xzvf jpegsrc.v6b.tar.gz
cd jpeg-6b
ln -s `which glibtool` ./libtool
export MACOSX_DEPLOYMENT_TARGET=10.5
./configure --enable-shared --prefix=/usr/local
make
sudo make install
cd ..
curl -O ftp://ftp.remotesensing.org/libtiff/tiff-3.8.2.tar.gz
tar xzvf tiff-3.8.2.tar.gz
cd tiff-3.8.2
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O http://jaist.dl.sourceforge.net/sourceforge/wvware/libwmf-0.2.8.4.tar.gz
tar xzvf libwmf-0.2.8.4.tar.gz
cd libwmf-0.2.8.4
make clean
./configure
make
sudo make install
cd ..
curl -O http://www.littlecms.com/lcms-1.17.tar.gz
tar xzvf lcms-1.17.tar.gz
cd lcms-1.17
make clean
./configure
make
sudo make install
cd ..
curl -O http://ufpr.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-8.60.tar.gz
tar zxvf ghostscript-8.60.tar.gz
cd ghostscript-8.60/
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O http://ufpr.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-fonts-std-8.11.tar.gz
tar zxvf ghostscript-fonts-std-8.11.tar.gz
sudo mv fonts /usr/local/share/ghostscript
curl -O http://internap.dl.sourceforge.net/sourceforge/imagemagick/ImageMagick-6.4.2-5.tar.gz
tar xzvf ImageMagick-universal-apple-darwin9.4.0.tar.gz
cd ImageMagick-6.4.2.2
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 ..
sudo gem install RMagick
Just to say that ImageMagick is on version 9,5 now. your script borks there and in the install of the gem. thanks though.
and by 9,5 i meant ImageMagick-universal-apple-darwin9.5.0.tar.gz
and for some reason, the command that worked for me was sudo gem install rmagick
note the spelling. maybe they changed it since you wrote the script. i don’t know.