php编译中配置libxml2的错误

checking whether libxml build works... no

configure: error: build test failed. Please check the config.log for details

如果已经安装libxml2,编译过程中如果出现这个错误。

请查找一下libxml2.so文件的所在位置,在php编译选项中的--with-libxml2-dir路径指定为libxml2.so的所在路径。