安装Imagemagick
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装Imagemagick相关的知识,希望对你有一定的参考价值。
安装依赖
yum install tcl-devel.x86_64 libpng-devel.x86_64 libjpeg-devel.x86_64 ghostscript-devel.x86_64 bzip2-devel.x86_64 freetype-devel.x86_64 libtiff-devel.x86_64
yum install libjpeg-devel.x86_64 libpng-devel.x86_64 glib2-devel.x86_64 fontconfig-devel.x86_64 zlib-devel.x86_64 libwmf-devel.x86_64 freetype-devel.x86_64 libtiff-devel.x86_64
安装步骤:
1、先安装jpegsrc(下载地址:http://www.imagemagick.org/download/delegates/)
1)解压
2) ./configure –prefix=/usr
3)make && make install
2、安装Imagemagick
1) wget http://www.imagemagick.org/download/ImageMagick.tar.gz
2)./configure --prefix=/usr/local/ImageMagick --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes
3) make && make install
踩过的坑:1、 报错信息: wrong jpeg library version :library is 62 ,caller expets 90 解决办法: rm -f /usr/lib64/libjpeg.so.62
ln -sv /usr/lib/libjpeg.so.9.2.0 /usr/lib64/libjpeg.so.62
2、报错信息 : make的时候报错 Can‘t locate ExtUtils/MakeMaker.pm 解决办法:yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker
本文出自 “10633230” 博客,请务必保留此出处http://10643230.blog.51cto.com/10633230/1962760
以上是关于安装Imagemagick的主要内容,如果未能解决你的问题,请参考以下文章