因为gd库重新编译了php
今天在服务器上安了一个drupal
然后在后台看到提示说是不支持gd库
当时想重新编译一下php吧
然后在 PHP: 图像函数库 – Manual看到了参数应该加上–with-gd
然后按照说明编译
但是在configure的时候提示我找不到libpng
不知道为什么
然后下载libpng但是总是失败
最后想了想
换了一个方法
先下载了gd2,然后把gd2先编译
最后编译php的时候参数是:
./configure –prefix=/usr/local/php/ –with-mysql=/usr/local/mysql/ –with-apxs2=/usr/local/apache2/bin/apxs –with-curl=/usr/local/curl/ –with-mcrypt=/usr/local/libmcrypt/ –enable-ftp –with-zlib-dir=/usr/local/zlib/ –with-gd=/usr/local/gd2
然后编译成功
进入drupal后台查看
告诉我 内置GD2工具包已经安装并正确运行。
Leave a Message
No Messages
No Messages
RSS feed for comments on this post. TrackBack URI
我的简介: 谁说tmd巨蟹座傻来的?我就是tmd巨蟹里边儿最聪明的!!!