参考:http://xupo.iteye.com/blog/1134986
http://logo32.blog.163.com/blog/static/668116902012825105651961/
检查一些依赖包的安装,通过yum来安装,如果Redhat5无法用yum,参考本人的
另一篇文章:RHEL5 利用 CentOS的yum 安装openssl gc++及Nginx
1.确保系统已经安装以下包:
- # 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
- # yum install freetype
- # yum install zlib
2.从http://www.jmagick.org/lenya/jmagick/live/download.html这个网址下载到最新版本
3.安装ImageMagick
- #tar zxvf ImageMagick-6.8.3-10.tar.gz
- #cd ImageMagick-6.8.3-10
- #./configure LDFLAGS='-L/usr/local/lib' --prefix=/usr/local/ImageMagick-6.8.3-10 --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared=no --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-openmp
- #make
- #make install
安装完成
ImageMagick convert命令占cpu过高,可能是因为起用了多线程OpenMp,所以在这里编译时增加了参数: --disable-openmp