<span id="Label3"></p><p><p>Reference Link: http://my.oschina.net/u/142836/blog/169382</p></p><p><p><br></p></p><p><p>Things to Download:</p></p><pre class="brush:bash;toolbar:false"><pre class="brush:bash;toolbar:false">Libwebp-0.5.1.tar.gzwget Imagemagick6.9.5.tar.gzwget http://git.imagemagick.org/repos/ImageMagick/repository/ Archive.tar.gz?ref=6.9.5-0imagick-3.1.2.tgzhttps://pecl.php.net/get/imagick-3.1.2.tgz</pre></pre><p><p>Be sure to use imagemagick6.9.5.tar.gz this package, because the official latest version of the imagemagick-7.0.2-4, after installation Problems.</p></p><p><p><br></p></p><p><p>One.</p></p><pre class="brush:bash;toolbar:false"><pre class="brush:bash;toolbar:false">Yum-y Install Libpng-devel Libjpeg-devel</pre></pre><p><p>Two. Installing the Webo Library</p></p><pre class="brush:bash;toolbar:false"><pre class="brush:bash;toolbar:false">[[email protected] src]# tar-zxvf libwebp-0.5.0.tar.gz[[email protected] src]# cd libwebp-0.5.0/[[email protected] Libwe Bp-0.5.0]#./configure && make && make Install[[email protected] libwebp-0.5.0]# cp/usr/local/lib/ Libwebp.so.6.0.0/usr/lib64/[[email protected] libwebp-0.5.0]# ln-s/usr/lib64/libwebp.so.6.0.0/usr/lib64/ Libwebp.so.6[[email protected] libwebp-0.5.0]# ln-s/usr/lib64/libwebp.so.6.0.0/usr/lib64/libwebp.so</pre></pre><p><p>Installing ImageMagick</p></p><pre class="brush:bash;toolbar:false"><pre class="brush:bash;toolbar:false">[[email protected] src]# tar-zxvf imagemagick6.9.5.tar.gz[[email protected] src]# cd Imagemagick-6.9.5/[[email protected] Imagemagick-6.9.5]#./configure--prefix=/usr/local/imagemagick--with-webp[[email protected] imagemagick-6.9.5]# make && make Install[[email protected] src]# ln-s/usr/local/imagemagick/include/ ImageMagick-6/usr/local/imagemagick/include/imagemagick</pre></pre><p><p>Different places:</p></p><pre class="brush:bash;toolbar:false"><pre class="brush:bash;toolbar:false">[email protected] src]# vim/etc/profileexport magick_home=/usr/local/imagemagick/export path= $MAGICK _home/bin:$ Path[[email protected] src]# Source/etc/profile</pre></pre><p><p>Without the previous step, you may not find the convert command.</p></p><p><p>Installing PHP Extensions</p></p><pre class="brush:bash;toolbar:false"><pre class="brush:bash;toolbar:false">TAR-ZXVF IMAGICK-3.1.0RC2.TGZCD Imagick-3.1.0rc2/usr/local/php/bin/phpizeexport PKG_CONFIG_PATH=/usr/local/ imagemagick/lib/pkgconfig./configure--with-php-config=/usr/local/php/bin/php-config--with-imagick=/usr/local/ Imagemagickmake && make Install</pre></pre><p><p>There are two pits, which are imagemagick with the official latest version, not normal.</p></p><p><p>The other one is, to source the environment</p></p><p><p>Refer To: http://www.imagemagick.org/script/binary-releases.php/<br></p></p><p><p><br></p></p><p><p>PHP Installation Imagick Extensions</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service