容器技术交流

 找回密码
 立即注册
查看: 3255|回复: 0

ImageTTFText any2eucjp 汉字生成图片乱码 最新

[复制链接]
发表于 2013-11-2 17:48:18 | 显示全部楼层 |阅读模式
本帖最后由 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"

复制代码

在下面添加:
  • extension = "imagick.so"

复制代码









您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2024-5-19 17:43 , Processed in 0.038885 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表