【发布时间】:2020-11-26 14:27:20
【问题描述】:
我在编译以这种方式配置的 Zabbix 5.2 时遇到问题:
# ./configure --enable-server --enable-agent --with-net-snmp --with-libcurl --with-libxml2 --with-postgresql --with-prefix=/usr/local/zabbix5 --verbose
...
checking for PostgreSQL libraries... yes
checking if PostgreSQL version is >= 9.2... yes
checking for Zabbix server/proxy database selection... ok
checking for multirow insert statements... yes
checking for pkg-config... no
checking for pkg-config... no
configure: error: LIBXML2 library not found
现在我已经安装了libxml2-dev (apt install libxml2-dev)。它确实显示为libxml2-dev:amd64,不知道为什么,因为操作系统是amd64。
我尝试设置不同的环境变量,比如export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/libxml-2.0.pc(这是libxml2-dev:amd64安装的配置)。
我不知道为什么会发生这种情况或如何解决它。
操作系统:Debian 10 amd64。
【问题讨论】:
-
config.log 中有什么内容?你可以查看packages.debian.org/buster/zabbix-server-mysql上的依赖列表
标签: xml linux compilation zabbix debian-buster