1. 安装jpeg包
安装jpeg包
tar -zvxf jpegsrc.v6b.tar.gz
cd jpeg-6b/
./configure --enable-shared --enable-static ; make ; make install
2. 安装zlib包
tar -xzvf zlib-1.2.5.tar.gz
cd zlib-1.2.5
./configure
make
make install
3. 安装png包
tar -xzvf libpng-1.2.12.tar.gz
cd libpng-1.2.12
cp scripts/makefile.std makefile
32位:
make
make install
64位::
make CFLAGS=-fPIC
make CFLAGS=-fPIC install
4. 安装freetype包
./configure
make
make install
5. 安装jasper包
unzip jasper-1.900.1.zip
cd jasper-1.900.1
CFLAGS=-fPIC ./configure
make CFLAGS=-fPIC
make CFLAGS=-fPIC install
6. 安装imagemagick
ImageMagick builds on a variety of Unix and Unix-like operating systems including Linux, Solaris, FreeBSD, Mac OS X, and others. A compiler is required and fortunately almost all modern Unix systems have one. Download ImageMagick.tar.gz from www.imagemagick.org or a mirrors and verify its message digest.
Unpack the distribution with this command:
$ tar xvfz ImageMagick.tar.gz
Next configure and compile ImageMagick:
$ cd ImageMagick-6.7.5$ ./configure$ make
If ImageMagick configured and compiled without complaint, you are ready to install it on your system. Administrator privileges are required to install. To install, type
$ sudo make install
You may need to configure the dynamic linker run-time bindings:
$ sudo ldconfig /usr/local/lib
Finally, verify the ImageMagick install worked properly, type
$ /usr/local/bin/convert logo: logo.gif
For a more comprehensive test, run the ImageMagick validation suite. Ghostscript is a prerequisite, otherwise the EPS, PS, and PDF tests will fail.
$ make check