Compile Zabbix proxy, Ubuntu 20 LTS


docker run --name ubuntu20 -t -i -d ubuntu:focal

docker exec -it ubuntu20 bash

apt update
apt -y install gcc make wget libsqlite3-dev libevent-dev
wget https://cdn.zabbix.com/zabbix/sources/stable/5.0/zabbix-5.0.22.tar.gz
tar xvf zabbix-5.0.22.tar.gz
cd zabbix-5.0.22
./configure --enable-proxy --with-sqlite3 --with-libxml2


./configure --enable-proxy

# configure: error: no acceptable C compiler found in $PATH
apt -y install make gcc




./configure --enable-proxy --with-sqlite3

# configure: error: SQLite3 library not found
apt -y install libsqlite3-dev

./configure --enable-proxy --with-sqlite3 --with-libcurl --with-libevent --with-libpcre --with-libpthread --with-zlib --with-gnutls

# --with-openssl 

# checking for zlib support... configure: error: Unable to use zlib (zlib check failed)
apt install -y build-essential

# configure: error: GnuTLS library libgnutls not found
apt install libgnutls28-dev


./configure --enable-proxy --with-sqlite3 --with-libcurl --with-libevent --with-libpcre --with-libpthread --with-zlib --with-gnutls --with-libxml2

./configure --enable-proxy --with-sqlite3 --with-libxml2



# --with-libxml2
# configure: error: LIBXML2 library not found
apt-get -y install libxml2-dev


No comments: