+ -
当前位置:首页 → 问答吧 → 新人PHP 编译出错,知道的朋友帮忙解答一二。

新人PHP 编译出错,知道的朋友帮忙解答一二。

时间:2011-06-28

来源:互联网

操作系统为Opensuse 11.4 编译PHP提示错误如;configure: error: xml2-config not found. Please check your libxml2 installation.
在/usr/local目录中已经编译并成功安装了libxml2文件,为什么还提示config not found .
请问应该从何下手解决此问题,
在此先谢谢!

作者: fslwx_2008   发布时间: 2011-06-28

编译过程如下;
./configure --prefix=/usr/local/ --with-apxs2=/usr/local/httpd-2.2/bin/apxs --with-curl=/usr/local/curl --enable-ftp  --with-expat-dir=/usr/lib --enable-soap --with-gd=/usr/local/gd2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-zlib-dir=/usr/local/lib/ --with-png=/usr/local/lib/ --with-freetype-dir=/usr/local/freetype/
checking for Apache 1.x (hooks) module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support... no
checking whether to enable Apache charset compatibility option... no
checking for Caudium support... no
checking for CLI build... yes
checking for Continuity support... no
checking for embedded SAPI library support... no
checking for FPM build... no
checking for Zeus ISAPI support... no
checking for LiteSpeed support... no
checking for Milter support... no
checking for NSAPI support... no
checking for PHTTPD support... no
checking for Pi3Web support... no
checking whether Roxen module is build using ZTS... no
checking for Roxen/Pike support...
checking for thttpd... no
checking for TUX... no
checking for webjames... no
checking for chosen SAPI module... apache2handler
Configuring extensions
checking size of long... (cached) 4
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
linux-bwk1:/home/test/software/php-5.3.6 # make
make: *** 没有指明目标并且找不到 makefile。 停止。
linux-bwk1:/home/test/software/php-5.3.6 # make install
make: *** 没有规则可以创建目标“install”。 停止。
新人请大家多多关照.

作者: fslwx_2008   发布时间: 2011-06-28

热门下载

更多