1、进到源码包对应扩展目录
# cd /root/lamp/php-5.2.12/ext/curl
2、调用phpize程序生成编译配置文件
# /usr/local/php5/bin/phpize
3、# ./configure -with-curl=/usr/local/curl -with-php-config=/usr/local/php5/bin/php-config
一般会出现错误如下:
checking for cURL in default path… not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /inclu...
LAMP环境搭建中遇到的问题 (自己的笔记)
一、编译安装GD库时出现的错误
报错信息如下:
gd_png.c:603: error: ‘PNG_COMPRESSION_TYPE_DEFAULT’ undeclared (first use in this function) gd_png.c:
609: error: ‘PNG_COLOR_TYPE_RGB’ undeclared (first use in this function) gd_png.c
725: error: ‘row_pointers’ undeclared (first use in this function) gd_png.c
解决办法:
进入gd源代码目录:/opt/ws/gd2
vim gd_png.c
将16行的png.h...