Skip to content


imagick PHP扩展的安装( ubuntu版)

本文原来写在csdn下面,因为近期用到了imagick.现迁移回来加深记忆.
===>

在ubuntu下安装imagick的php扩展,还算比较的简单。用以下方法屡试不爽
1,编译PHP
编译过程不在多说,可以看其它相关php编译的文章
2.安装ImageMagick(此步骤不知可不可以省略大家可以试一下,因为我的机器原本装有此工具。由于时间关系没有测试)
sudo apt-get install imagemagick
3.安装imagemagick 的lib 供php调用
sudo apt-get install libmagick++9-dev
4. 进入到编译好的php的bin目录
cd php的bin目录

5.调用当前的pecl安装imagick
pecl install imagick
6.修改php.ini.重启apache服务器
在php.ini中添加: extension = imagick.so
7.测试
imagick

Posted in linux, php, 技术.

Tagged with , , .


4 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. zonghua says

    我最近两天也在学习ubuntu

  2. 果沟 says

    神速

  3. 老时 says

    沙发没坐上,只能坐大腿了。

  4. 果沟 says

    大腿不让坐哈



Some HTML is OK

or, reply to this post via trackback.