1)I like wget, which I use in the commands below. To start compile that or replace the wget
command with curl -O.
curl -O http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
tar -zxvf wget-latest.tar.gz
cd wget-1.11/
./configure --prefix=/usr/local
make
sudo make install
cd ..
2)FreeType
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz
tar zxvf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure --prefix=/usr/local
make
sudo make install
cd ..
3)PNG Library
http://sourceforge.net/projects/libpng/files/libpng15/1.5.1oldbetas/ and download libpng-1.5.1
tar -zxvf libpng-1.2.25.tar.gz
cd libpng-1.2.25
./configure --prefix=/usr/local
make
sudo make install
cd ..
4) Download JPEG Library
5)TIFF Library
wget ftp://ftp.remotesensing.org/libtiff/tiff-3.8.2.tar.gz
tar -zxvf tiff-3.8.2.tar.gz
cd tiff-3.8.2
./configure --prefix=/usr/local
make
sudo make install
cd ..
6)ImageMagick
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar zxvf ImageMagick.tar.gz
cd ImageMagick-6.3.9/
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 ..
7)RMagick
sudo gem install rmagick
8)MiniMagick
sudo gem install mini_magick
Keep it up