|
本帖最后由 hbniit 于 2013-11-2 17:49 编辑
cd /home/ftp
wget ftp://ftp.kddlabs.co.jp/graphics/ImageMagick/ImageMagick.tar.gz
wget http://pecl.php.net/get/imagick-3.0.1.tgz
tar zxvf ImageMagick.tar.gz
cd ImageMagick-6.7.2-0/ 查看一下 版本号修改一下
./configure
make
make install
cd ../
tar zxvf imagick-3.0.1.tgz
cd imagick-3.0.1/
/usr/local/php_fcgi/bin/phpize
ln -s /usr/local/include/ImageMagick-6 /usr/local/include/ImageMagick
./configure --with-php-config=/usr/local/php_fcgi/bin/php-config --with-imgaick=/home/soft/imagick-3.0.1/
make
make install
cd ../
就是死说找不到MagickWand.h:
checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h
ImageMagick 6.8这个版后的目录结构变了,旧版本头文件是放在/usr/local/include/ImageMagick目录的,而ImageMagick 6.8则是放在/usr/local/include/ImageMagick-6
添加软连接
命令如下:
ln -s /usr/local/include/ImageMagick-6 /usr/local/include/ImageMagick
make && make && install
编译通过!
然后在lumanager控制面板的系统管理和优化中修改php.ini(PHP-CGI)文件,查找到:- extension = "memcache.so"
复制代码
在下面添加:
复制代码
|
|