linux编译时php出错

Running FastCGI Process Manager checks
checking for php-fpm config file path... $prefix/etc/php-fpm.conf
checking for php-fpm log file path... $prefix/logs/php-fpm.log
checking for php-fpm pid file path... $prefix/logs/php-fpm.pid
checking for XML configuration
checking for xml2-config... /usr/bin/xml2-config
checking for libxml library... yes, 2.6.23
checking for xmlParseFile... no
configure: error: Failed to link with libxml

rpm -qa | grep libxml2
libxml2-32bit-2.6.23-15.2
libxml2-python-2.6.23-15.2
libxml2-devel-2.6.23-1.2
libxml2-2.6.23-15.2

求高手指点

第1个回答  2011-10-18
编译的配置文件中需要 libxml包,注释掉,或下载个包,应该就可以了
第2个回答  2011-10-18
看configure这个文件中Failed to link with ~这段源内容是怎样的,是什么原因导致这句话被打出来的。追问

13039:{ echo "configure: error: Failed to link with libxml" 1>&2; exit 1; }

追答

这句话前面的判断条件呢?
13039:{ echo "configure: error: Failed to link with libxml" 1>&2; exit 1; }

追问

if eval "test \"`echo '$ac_cv_func_'xmlParseFile`\" = yes"; then
echo "$ac_t""yes" 1>&6
:
else
echo "$ac_t""no" 1>&6
{ echo "configure: error: Failed to link with libxml" 1>&2; exit 1; }
是这个么?
如果是因为checking for xmlParseFile... no的原因 关于xmlParseFile的资料几乎没有

追答

你的libxml版本太新或者版本太旧,没有xmlParseFile函数了。你需要一个内部包含这个函数的libxml版本。

本回答被提问者采纳

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网