centos 5 php5.6 安装imagemagick和imagick
2016-08-23 18:08
501 查看
在百度查了好久,试验了好久,各种人写的各种不靠谱的帖子,通通失败,现在已经舍弃百度了,下面是我google出来的,经过验证后,很快实现了安装这俩扩展,介绍一下环境先,centos5 64bit,php5.6源码安装 ,yum源最好更新一下为阿里的,具体命令如下:
1.更新源:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2.下载源:
CentOS 5wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo CentOS 6wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo3.运行源:
yum clean allyum makecache4.Yum安装php-pear:
yum -y install php-pear
5.Yum安装ImageMagick:
yum -y install ImageMagick*
pecl install Imagick
这一步需要手动指定Imagemagick的安装路径,因为Imagick需要找Imagemegick的库文件,where is Imagemegick就好了,我的是在/usr/local/Imagemagick下,回车,然后Imagick就自动编译安装了
6.检查一下是否安装成功:
php -i | grep Imagick
出现这些就说明成功了:
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version => ImageMagick 6.9.5-7 Q16 x86_64 2016-08-18 http://www.imagemagick.org Imagick using ImageMagick library version => ImageMagick 6.9.5-7 Q16 x86_64 2016-08-18 http://www.imagemagick.org
1.更新源:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2.下载源:
CentOS 5wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo CentOS 6wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo3.运行源:
yum clean allyum makecache4.Yum安装php-pear:
yum -y install php-pear
5.Yum安装ImageMagick:
yum -y install ImageMagick*
pecl install Imagick
这一步需要手动指定Imagemagick的安装路径,因为Imagick需要找Imagemegick的库文件,where is Imagemegick就好了,我的是在/usr/local/Imagemagick下,回车,然后Imagick就自动编译安装了
6.检查一下是否安装成功:
php -i | grep Imagick
出现这些就说明成功了:
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version => ImageMagick 6.9.5-7 Q16 x86_64 2016-08-18 http://www.imagemagick.org Imagick using ImageMagick library version => ImageMagick 6.9.5-7 Q16 x86_64 2016-08-18 http://www.imagemagick.org
相关文章推荐
- CentOS下安装ImageMagick和PHP Imagick扩展
- CentOS下安装ImageMagick和PHP Imagick扩展
- Centos安装ImageMagick 与 imagick for php
- centos6.4下安装php的imagick和imagemagick扩展教程
- windows7下安装php的imagick和imagemagick扩展教程
- 转 ImageMagick及PHP的imagick扩展的安装及配置
- centos 5.6 final的VPS安装php5.3.9,apache2.2.21,mysql 5.5.20支持.
- centos5.6安装php mysql apache
- centos5.6 安装mysql+php+nginx
- [转]centos5.6安装php mysql apache
- CentOS 6.3 安装 lnmp (php5.4,mysql5.6)
- linux下 安装 ImageMagick 及其 php imagick扩展
- [shell]CentOS 5.6安装web服务及相关软件(php 5.3, MySQL Server, memcache, spawn-fcgi, nginx, coreseek)
- LINUX安装ImageMagick和PHP Imagick扩展
- 生产环境Centos LNMP编译安装nginx-1.6 MySQL-5.6 php-5.5
- centos系统上为php安装imagick扩展以及magickwand扩展的方法
- CentOS 5.6服务器配置YUM安装Apache+php+Mysql+phpmyadmin
- 在CentOS release 5.6上安装gearman及php扩展错误记录
- linux下 安装 ImageMagick 及其 php imagick扩展
- CentOS5.6安装Apache Mysql PHP笔记