Thursday, December 13, 2018

libstdc++.so.5: cannot open shared object file: No such file or directory

Description.

OS : centos 7
Mysql version : 5.1

Mysql server doesn't start at the initially just after install it. Contain the following error message in /usr/local/mysql/data/.err file.

181214 09:13:49 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
/usr/local/mysql/bin/mysqld: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
181214 09:13:49 mysqld_safe mysqld from pid file /usr/local/mysql/data/tap-insights-da.pid ended

>yum list compat-libstdc++-33

Installed Packages
compat-libstdc++-33.i686                                                  3.2.3-72.el7                               
compat-libstdc++-33.x86_64                                                3.2.3-72.el7                                                

"compat-libstdc" is 32 bit one. So  need to install 64 bit.

> yum install compat-libstdc++-33