下载
http://www.xmlsoft.org/downloads.html https://github.com/GNOME/libxml2/tags
编译
BUILD_LIBS=${HOME}/build_libs export PATH=${BUILD_LIBS}/bin:${PATH} export PKG_CONFIG_PATH=${BUILD_LIBS}/lib/pkgconfig:${PKG_CONFIG_PATH} if [ -f autogen.sh ]; then ./autogen.sh fi ./configure \ --prefix=${BUILD_LIBS} \ CFLAGS="-I${BUILD_LIBS}/include" \ LDFLAGS="-L${BUILD_LIBS}/lib" \ --without-python make make install