这里显示一个错误信息:
checking for LIBXML2… configure: error: Package requirements (libxml-2.0 >=web
2.6) were not met:ide
No package ‘libxml-2.0′ foundui
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.spa
Alternatively, you may set the environment variables LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.orm
可是咱们在上面其实已经安装上 libxml2 了的,这里只是一个 环境变量没有设置好而已。xml
解决办法: 肯定 /usr/local/libxml2/lib/pkgconfig 目录下有 libxml-2.0.pcci
export PKG_CONFIG_PATH=/usr/local/libxml2/lib/pkgconfig:$PKG_CONFIG_PATHrem
再次生成 makefile , 这样就成功了it