之前有朋友问我imagemagick的安装方法。也是,其实网上安装imagemagick的教程很多,但很多会有这啊那啊的缺陷,导致安装失败。
以下是我安装imagemagick的方法,贴出来供大家参考:
[b]首先,请先确保系统已经安装以下包:
或者直接用以下命令安装 [/b]
# yum install libjpeg
# yum install libjpeg-devel
# yum install libpng
# yum install libpng-devel
# yum install libtiff
# yum install libtiff-devel
# yum install libungif
# yum install libungif-devel
[b]服务器如果没有安装Jpeg v6b、libPng、FreeType 的要在安装imagemagick之前先装好[/b]
tar -zvxf jpegsrc.v6b.tar.gz
cd jpeg-6b/
./configure --enable-shared --enable-static ; make ; make install
*安装png包:先在http://sourceforge.net/projects/libpng/上下载最新的libpng包
tar -xzvf libpng-1.2.12.tar.gz
cd libpng-1.2.12
cp scripts/makefile.std makefile
make
make install
[b]make jpeg库时出现错误[/b]
cannot create regular file `/usr/local/man/man1/cjpeg.1': No such file or directory
make: *** [install] Error 1
解决:
# mkdir /usr/local/man
# mkdir /usr/local/man/man1
# make install -lib
以下是我安装imagemagick的方法,贴出来供大家参考:
[b]首先,请先确保系统已经安装以下包:
或者直接用以下命令安装 [/b]
# yum install libjpeg
# yum install libjpeg-devel
# yum install libpng
# yum install libpng-devel
# yum install libtiff
# yum install libtiff-devel
# yum install libungif
# yum install libungif-devel
[b]服务器如果没有安装Jpeg v6b、libPng、FreeType 的要在安装imagemagick之前先装好[/b]
tar -zvxf jpegsrc.v6b.tar.gz
cd jpeg-6b/
./configure --enable-shared --enable-static ; make ; make install
*安装png包:先在http://sourceforge.net/projects/libpng/上下载最新的libpng包
tar -xzvf libpng-1.2.12.tar.gz
cd libpng-1.2.12
cp scripts/makefile.std makefile
make
make install
[b]make jpeg库时出现错误[/b]
cannot create regular file `/usr/local/man/man1/cjpeg.1': No such file or directory
make: *** [install] Error 1
解决:
# mkdir /usr/local/man
# mkdir /usr/local/man/man1
# make install -lib