容器技术交流

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

我想给php增加模块的时候编译错误.

[复制链接]
发表于 2009-6-26 12:39:00 | 显示全部楼层 |阅读模式
因为需要curl模块,那我进入 famp目录解开php-5.2.9.tar.gz,然后进入php-5.2.9/ext/curl目录下运行 /usr/local/php-fcgi/bin/phpize
./configure -with-php-config=/usr/local/php-fcgi/bin/php-config

但配置的时候出错了,显示:

[root@localhost curl]# ./configure -with-php-config=/usr/local/php-fcgi/bin/php-                                                                                                  config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for icc... no
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local/php-fcgi
checking for PHP includes... -I/usr/local/php-fcgi/include/php -I/usr/local/php-                                                                                                  fcgi/include/php/main -I/usr/local/php-fcgi/include/php/TSRM -I/usr/local/php-fc                                                                                                  gi/include/php/Zend -I/usr/local/php-fcgi/include/php/ext -I/usr/local/php-fcgi/                                                                                                  include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php-fcgi/lib/php/extensions/n                                                                                                  o-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/php-fcgi/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate                                                                                                   PHP parsers.
checking for gawk... gawk
checking for cURL support... yes, shared
checking if we should use cURL for url streams... no
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in <curl-dir>/include/curl/

还需要安装什么库么?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-7-12 11:45 , Processed in 0.027715 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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