title: Compiling Zabbix 5.2 with libxml2 support
body: <p>I have problem compiling Zabbix 5.2 configured this way:</p>
  <pre><code># ./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 &gt;= 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
  </code></pre>
  <p>Now I <strong>have</strong> installed <code>libxml2-dev</code> (<code>apt install libxml2-dev</code>). It does show up as <code>libxml2-dev:amd64</code>, not sure why, because the OS is <code>amd64</code>.</p>
  <p>I tried setting different environment variables, like <code>export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/libxml-2.0.pc</code> (that's configuration installed by <code>libxml2-dev:amd64</code>).</p>
  <p>I have no idea why this happens or how can I fix it.</p>
  <p>OS: Debian 10 amd64.</p>