libmysqlclient.so.18: cannot open shared object file: No such file or directory

操作系统版本:

[root@linux-node1 ~]# uname -r
2.6.32-504.el6.x86_64

启动zabbix server的时候出现以下错误

libmysqlclient.so.18: cannot open shared object file: No such file or directory

解决办法:

[root@linux-node1 ~]#  find / -name libmysqlclient.so.18
/usr/local/mysql/lib/libmysqlclient.so.18

[root@linux-node1 ~]# echo "/usr/local/mysql/lib" >> /etc/ld.so.conf   #将/usr/local/mysql/lib加到/etc/ld.so.conf中

[root@linux-node1 ~]# cat /etc/ld.so.conf       #查看                   
include ld.so.conf.d/*.conf  
/usr/local/mysql/lib 

[root@linux-node1 ~]# ldconfig    #生效命令

你可能感兴趣的:(zabbix监控)