Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)Call Stack

简介: Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)Call Stack

系统有libxml2,报错应该是没有定义。


安装依赖库

apt install libxml2-dev

定义环境变量

export LIBXML2_LIBRARY=/usr/lib/x86_64-linux-gnu
export LIBXML2_INCLUDE_DIR=/usr/include

再次编译

目录
相关文章
/usr/include/glib-2.0/glib/gtypes.h:32:10: fatal error: glibconfig.h: No such file or directory
/usr/include/glib-2.0/glib/gtypes.h:32:10: fatal error: glibconfig.h: No such file or directory
215 0
configure: error: /usr/include/openssl is a bad --with-openssl prefix
configure: error: /usr/include/openssl is a bad --with-openssl prefix
495 0
configure: error: Can‘t find ext2fs library
configure: error: Can‘t find ext2fs library
247 0
Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
341 0
symbol lookup error: /home/quantum6/build_libs/lib/libreadline.so.7: undefined symbol: UP
symbol lookup error: /home/quantum6/build_libs/lib/libreadline.so.7: undefined symbol: UP
128 0
libtool: Version mismatch error. This is libtool 2.4.6, but the definition of this LT_INIT
libtool: Version mismatch error. This is libtool 2.4.6, but the definition of this LT_INIT
130 0
编译OpenJDK8:configure: could not find or use freetype at location
编译OpenJDK8:configure: could not find or use freetype at location
165 0