无法编译PHP,xml2-config 是什么东西??
我帮来装PHP都没有出现过这种情况,现在换了一个系统,debian的。面编译时就出现了这个情况,PHP是5。1。4的configure: error: xml2-config not found. Please check your libxml2 installation. libxml2
www.google.com搜索这个先安装. 其实我看了这个报错以后,我就把这个libxml2装上了
可是编译时同样也是报一样的错 whereis xml2-config
./configure --help
看看xml的选项,可能需要with-xml这样子的设置, 有点奇怪了
为什么我原来装PHP是没有这种情况的啊,现在我加了一个--with-libxml-dir=libxml2才能通过,但又有一个包要装了
configure: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information.
怎么会是这样的啊 与libxm2相关的软件包libxml2-devel libxml-python 也要装上的
到http://rpmfind.org 去找 zlib 库缺少 ! ZLIB库少了,是不是装上zlib就可以解决呢
我装上了zlib,现在报错则是:mysql configure failed. ./configure --prefix=/usr/local/php--with-libxml-dir=/usr/local/libxml2 Debian下的安装
apt-get install build-essential
apt-get install libxml2-dev
页:
[1]
2