Ad Widget

Collapse

zabbix_server: error while loading shared libraries: libmysqlclient.so.21

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gairhald
    Junior Member
    • Jan 2019
    • 8

    #1

    zabbix_server: error while loading shared libraries: libmysqlclient.so.21

    Hi,
    is my first time intall zabbix and i have a bit problem.

    My enviroment is:
    CentOS 7.6.1810
    MySQL 8.0.12 (binaries)
    Zabbix 4.0


    I install MySQL, create zabbix database and import the three schemas (schema.sql, images.sql,data.sql), and it´s ok.

    I donwload source code Zabbix and install and make it and all ok.

    The problem is when launch zabbix_server that returns error:

    Code:
     zabbix_server: error while loading shared libraries: libmysqlclient.so.21: cannot open shared object file: No such file or directory
    I try to donwload and install mysql-workbench-community-8.0.12-1.el7.x86_64.rpm but dont work.
    I add directly in ldconfg the path of libs:

    Code:
    [root@ksrzabbix ~]# locate libmysqlclient.so.21
    /opt/mysql-8.0.12-linux-glibc2.12-x86_64/lib/libmysqlclient.so.21
    /opt/mysql-8.0.12-linux-glibc2.12-x86_64/lib/libmysqlclient.so.21.0.12
    /usr/lib64/mysql-workbench/libmysqlclient.so.21
    /usr/lib64/mysql-workbench/libmysqlclient.so.21.0.12
    
    [root@ksrzabbix ~]#ldconfig -n /opt/mysql-8.0.12-linux-glibc2.12-x86_64/lib/libmysqlclient.so.21
    but nothing...any idea? thanks a lots
  • gairhald
    Junior Member
    • Jan 2019
    • 8

    #2
    Please, closed this post, I've reinstalled with MySQL 5.7 (binaries) and works fine, thanks

    Comment

    Working...