安装ImageMagick小记
时间:2007-01-04 10:22:30
来源: 作者:whsong 点击:次 出处:技术无忧
关键字:安装
因为安装drupal的image module必须用到ImageMagick,所以了解了一下,发现ImageMagick的功能非常强大。张微波的BLOG里讲到了[url=http://www.5ilinux.com/blog/archives/000104.html]如何使ImageMagick支持PHP[/url],但是我现在发现在[url=http://www.imagemagick.org/www/download.html]ImageMagick网站的下载页面[/url]里已经有了一个叫MagickWand for PHP的插件,可以直接支持php。
下面我再说一下安装步骤:
1、首先安装ImageMagick程序
wget http://www.imagemagick.org/download/ImageMagick-6.1.7-5.tar.gz
tar zxvf ImageMagick-6.1.7-5.tar.gz
cd ImageMagick-6.1.7-5
./configure –enable-shared –enable-lzw –with-modules
make
make install
–enable-lzw 是打开lzw压缩
2、安装MagickWand for PHP
在安装之前如果还没有安装过php,请先按正常步骤安装一遍php,产生所需的phpize程序。
然后:
wget http://www.magickwand.org/download/php/MagickWandForPHP-0.1.0.tar.bz2
bunzip2 MagickWandForPHP-0.1.0.tar.bz2
tar xvf MagickWandForPHP-0.1.0.tar
mv MagickWandForPHP-0.1.0 PHP_SRC_DIR/ext/magickwand
注:PHP_SRC_DIR是指你的php源码目录
cd PHP_SRC_DIR/ext/magickwand/
运行phpize
然后 cd PHP_SRC_DIR
rm -rf ./configure
./buildconf –force
然后重新编译php
./configure –with-apache2=../httpd-2.0.52 –with-mysql=/usr/local/mysql –enable-bcmath –with-zlib –with-gd –with-jpeg-dir –enable-gd-native-ttf –with-ttf –with-freetype-dir –enable-memory-limit –enable-zend-multibyte –disable-ipv6 –disable-path-info-check –with-iconv –with-pear –disable-debug –with-apxs2=/usr/local/apache2/bin/apxs –with-magickwand=/usr/local/ImageMagick
gmake
gmake install
这样就ok了!
Technorati Tags: php, 笔记, 编译
更多电脑、家电软硬件维修资讯请访问维修技术

下一篇:SSH 的详细使用方法











文章评论
共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面