lxc521 发表于 2006-08-15 15:06

无法编译PHP,xml2-config 是什么东西??

我帮来装PHP都没有出现过这种情况,现在换了一个系统,debian的。面编译时就出现了这个情况,PHP是5。1。4的


configure: error: xml2-config not found. Please check your libxml2 installation.

HonestQiao 发表于 2006-08-15 15:17

libxml2

www.google.com搜索这个先安装.

lxc521 发表于 2006-08-15 15:20

其实我看了这个报错以后,我就把这个libxml2装上了
可是编译时同样也是报一样的错

HonestQiao 发表于 2006-08-15 15:27

whereis xml2-config
./configure --help
看看xml的选项,可能需要with-xml这样子的设置,

lxc521 发表于 2006-08-16 10:52

有点奇怪了
为什么我原来装PHP是没有这种情况的啊,现在我加了一个--with-libxml-dir=libxml2才能通过,但又有一个包要装了
configure: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information.
怎么会是这样的啊

zjbluefox 发表于 2006-08-16 12:06

与libxm2相关的软件包libxml2-devel libxml-python 也要装上的
到http://rpmfind.org 去找

koocy 发表于 2006-08-16 13:37

zlib 库缺少 !

lxc521 发表于 2006-08-16 13:56

ZLIB库少了,是不是装上zlib就可以解决呢
我装上了zlib,现在报错则是:mysql configure failed.

chinaboywg 发表于 2011-04-12 17:13

./configure --prefix=/usr/local/php--with-libxml-dir=/usr/local/libxml2

sunable 发表于 2011-04-13 14:10

Debian下的安装
apt-get install build-essential
apt-get install libxml2-dev
页: [1] 2
查看完整版本: 无法编译PHP,xml2-config 是什么东西??