#下载地址:
https://ftp.gnu.org/pub/gnu/libiconv/
#编译安装
./configure --prefix=/usr/local make make install
[root@zabbix-server libiconv-1.15]# echo $?
0
#启动zabbix报错
[root@zabbix-server ~]# /usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf /usr/local/zabbix/sbin/zabbix_server: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
#解决办法
[root@zabbix-server ~]# vi /etc/ld.so.conf include ld.so.conf.d/*.conf /usr/local/lib [root@zabbix-server ~]# ldconfig [root@zabbix-server ~]# /usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf