CentOS7 部署 zabbix6.0.27 执行 make install 报错
报错信息
[root@localhost zabbix-6.0.27]# make install
/usr/bin/ld: warning: libssl.so.3, needed by /usr/local/mysql/lib/libmysqlclient.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcrypto.so.3, needed by /usr/local/mysql/lib/libmysqlclient.so, not found (try using -rpath or -rpath-link)
/usr/local/mysql/lib/libmysqlclient.so:对‘SSL_CTX_get_security_level@OPENSSL_3.0.0’未定义的引用
/usr/local/mysql/lib/libmysqlclient.so:对‘EVP_CIPHER_get_block_size@OPENSSL_3.0.0’未定义的引用
/usr/local/mysql/lib/libmysqlclient.so:对‘ERR_get_error@OPENSSL_3.0.0’未定义的引用
/usr/local/mysql/lib/libmysqlclient.so:对‘TLS_client_method@OPENSSL_3.0.0’未定义的引用
/usr/local/mysql/lib/libmysqlclient.so:对‘ERR_clear_error@OPENSSL_3.0.0’未定义的引用
/usr/local/mysql/lib/libmysqlclient.so:对‘SSL_SESSION_is_resumable@OPENSSL_3.0.0’未定义的引用
/usr/local/mysql/lib/libmysqlclient.so:对‘EVP_sha512@OPENSSL_3.0.0’未定义的引用
......省略N
图片解析
解决报错
[root@localhost zabbix-6.0.27]# find / -name libcrypto.so.3
/usr/local/mysql/lib/private/libcrypto.so.3
[root@localhost zabbix-6.0.27]# ln -s /usr/local/mysql/lib/private/libcrypto.so.3 /usr/lib64/ # 软连接
[root@localhost zabbix-6.0.27]# ls -ld /usr/lib64/libcrypto.so.3
lrwxrwxrwx 1 root root 43 3月 7 17:17 /usr/lib64/libcrypto.so.3 -> /usr/local/mysql/lib/private/libcrypto.so.3
[root@localhost zabbix-6.0.27]# find / -name libssl.so.3
/usr/local/mysql/lib/private/libssl.so.3
[root@localhost zabbix-6.0.27]# ln -s /usr/local/mysql/lib/private/libssl.so.3 /usr/lib64/ # 软连接
[root@localhost zabbix-6.0.27]# ls -ld /usr/lib64/libssl.so.3
lrwxrwxrwx 1 root root 40 3月 7 17:32 /usr/lib64/libssl.so.3 -> /usr/local/mysql/lib/private/libssl.so.3
[root@localhost zabbix-6.0.27]# # 删除掉原来的解压的zabbix安装包,再重新解压、重新编译
[root@localhost zabbix-6.0.27]# pwd
/usr/src/zabbix-6.0.27
[root@localhost zabbix-6.0.27]# cd ..
[root@localhost src]# ls
debug libzip-1.3.2 mysql-8.2.0-linux-glibc2.17-x86_64.tar.xz nginx-1.24.0.tar.gz php-8.3.3.tar.gz zabbix-6.0.27.tar.gz
kernels libzip-1.3.2.tar.gz nginx-1.24.0 php-8.3.3 zabbix-6.0.27
[root@localhost src]# rm -rf zabbix-6.0.27 # 删除
[root@localhost src]#
[root@localhost src]# tar xf zabbix-6.0.27.tar.gz # 解压
[root@localhost src]# cd zabbix-6.0.27/
./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl --with-libxml2 && make install