zoukankan      html  css  js  c++  java
  • error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

    zabbix3.2启动有如下报错:
    # service zabbix_server start
    Starting zabbix_server:  /home/zabbix-server/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.18:
    cannot open shared object file: No such file or directory

                                                                         [失败]

    解决方法:

    查找这个模块的位置:

    # locate libmysqlclient.so.18
    /usr/local/mysql/lib/libmysqlclient.so.18
    /usr/local/mysql/lib/libmysqlclient.so.18.1.0

    查看ld.so.conf文件的内容:

    # cat /etc/ld.so.conf
    include ld.so.conf.d/*.conf

    添加路径信息:

    # echo "/usr/local/mysql/lib" >> /etc/ld.so.conf
    # ldconfig    刷新加载
  • 相关阅读:
    MYSQL常用命令集合(转载)
    Spring(七)持久层
    Spring(六)AOP切入方式
    面试题目
    11 集合
    10 常用类
    9 异常机制
    8 面向对象之抽象类+接口+内部类
    7 面向对象的三大特征
    6 面向对象之类和对象
  • 原文地址:https://www.cnblogs.com/meiling12/p/6096643.html
Copyright © 2011-2022 走看看