/application/zabbix/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such file or directory

在启动/usr/local/zabbix/sbin/zabbix_server 时报错如下

/application/zabbix/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such file or directory

 

 此时需要配置一个软连接指向该位置。

ln -s /usr/local/mysql/lib/libmysqlclient.so.20 /usr/lib64

注意:注意mysql目录位置及目录名,有的时候安装mysql习惯在后面加上版本号,会导致执行上述命令时建了一个无用软连接。

实例

/application/zabbix/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such file or directory

 

 

/application/zabbix/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such file or directory

上一篇:MATLAB app designer 菜鸟进阶学习(一)


下一篇:开源微信数据库框架WCDB