vi /etc/ld.so.conf
--------Install the JPEG---------------
--------Install the ZLIB---------------
--------Install the PNG---------------
--------Install the TIFF---------------
--------Install the libpng---------------
--------Install the ImageMagick--------
添加 "/usr/local/lib"
--------Install the JPEG---------------
引用
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --enable-shared
make && make install
cd jpeg-6b
./configure --enable-shared
make && make install
引用
gunzip zlib-1.1.4.tar.gz
tar xf zlib-1.1.4.tar
mv zlib-1.1.4 zlib
cd zlib
./configure
make
make install
tar xf zlib-1.1.4.tar
mv zlib-1.1.4 zlib
cd zlib
./configure
make
make install
--------Install the PNG---------------
引用
gunzip libpng-1.2.5.tar.gz
tar xf libpng-1.2.5.tar
mv libpng-1.2.5 libpng
cd libpng
cd scripts
cp makefile.linux ../makefile
cd ..
make test
make install
tar xf libpng-1.2.5.tar
mv libpng-1.2.5 libpng
cd libpng
cd scripts
cp makefile.linux ../makefile
cd ..
make test
make install
--------Install the TIFF---------------
引用
gunzip tiff-v3.5.7.tar.gz
tar xf tiff-v3.5.7.tar
cd tiff-v3.5.7
./configure
make
make install
tar xf tiff-v3.5.7.tar
cd tiff-v3.5.7
./configure
make
make install
--------Install the libpng---------------
引用
tar -xvjf freetype-2.1.3.tar.bz2
cd freetype-2.1.3
./configure --prefix=/usr/local
make
make install
cd freetype-2.1.3
./configure --prefix=/usr/local
make
make install
--------Install the ImageMagick--------
tar -zxvf ImageMagick-6.3.3.tar.gz
cd ImageMagick-6.3.3
./configure LDFLAGS="-L/usr/lib" CPPFLAGS="-I/usr/include" --enable-shared --disable-static --enable-lzw --prefix=/usr/local/ImageMagick
make && make install
cd ImageMagick-6.3.3
./configure LDFLAGS="-L/usr/lib" CPPFLAGS="-I/usr/include" --enable-shared --disable-static --enable-lzw --prefix=/usr/local/ImageMagick
make && make install