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

再次编译

目录
相关文章
configure: error: /usr/include/openssl is a bad --with-openssl prefix
configure: error: /usr/include/openssl is a bad --with-openssl prefix
472 0
Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
314 0
/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
209 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
127 0
编译OpenJDK8:configure: could not find or use freetype at location
编译OpenJDK8:configure: could not find or use freetype at location
162 0
|
Linux PHP
configure: error: Cannot find ldap libraries in /usr/lib
<p style="padding-top:0px; padding-bottom:0px; margin-top:0px; margin-bottom:0px; clear:both; height:auto; overflow:hidden; color:rgb(80,80,80); font-family:宋体,'Arial Narrow',arial,serif; font-siz
1801 0
|
Ubuntu Unix Linux
成功解决ERROR: Unable to find the development tool `make` in your path; please make sure that you have t
成功解决ERROR: Unable to find the development tool `make` in your path; please make sure that you have t
成功解决ERROR: Unable to find the development tool `make` in your path; please make sure that you have t