I am trying to build zabbix agent2 with statically linked libraries, which I can distribute among different servers. However, when I started agent2 in a different server without related libraries, it still asked for required libraries, while the zabbix_agentd compiled together work well.

The error information when start agent2 is as following:
./zabbix_agent2: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
The configure code is:
./configure --prefix=/home/zabbix --enable-agent --with-openssl --with-libpcre --enable-ipv6 --enable-agent2 --enable-static
The configure result is:

I'd really like to attach my Makefile generated here,but I has no permission to upload file now in this forum.
Can any one give me a hand? Is there anything I did wrong or dose zabbix agent2 not support compile statically?
The error information when start agent2 is as following:
./zabbix_agent2: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
The configure code is:
./configure --prefix=/home/zabbix --enable-agent --with-openssl --with-libpcre --enable-ipv6 --enable-agent2 --enable-static
The configure result is:
I'd really like to attach my Makefile generated here,but I has no permission to upload file now in this forum.

Can any one give me a hand? Is there anything I did wrong or dose zabbix agent2 not support compile statically?
Comment