php-5.2.6 编译xml2错误解决方法

 

./configure --prefix=/usr/local/php5 \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-libxml-dir=/usr/local/libxml2/lib \
--with-zlib --with-zlib-dir=/usr/local/lib \
--with-mysql=/home/lcx/mysql \
--enable-soap --enable-sockets \
--enable-mbstring=all

 

编译错误
error: xml2-config not found. Please check your libxml2 installation.

解决:

yum install libxml2   <---刚安装这个不行,下面那个东东也要装
yum install libxml2-devel

你可能感兴趣的:(xml)