cd /usr/local/src/php-5.2.8/ext/gd/ (源码包)
/usr/local/php/bin/phpize (php安装目录里的一个命令)
CoConfiguring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
./configure –with-gd=/usr/local/gd2 –with-php-config=/usr/local/php-cgi/bin/php-config
–with-gd 安装目录可没有
make && make install
然后再修改php.ini文件
手工修改:查找/usr/local/php/etc/php.ini中的extension_dir = “./”
修改为extension_dir = “/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/”
并在此行后增加以下几行,然后保存:
extension = “gd2.so”
阅读(2733) | 评论(0) | 转发(0) |