安装mysql时出错。无法初始化。 libstdc++.so.5
./bin/mysqld: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or dire
可以看出缺少库文件 libstdc++.so.5。
到官方下载:wget http://mirror.centos.org/centos/ ... 3-69.el6.x86_64.rpm
安装:rpm -ivh compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm
再重新启动MYSQL服务,启动OK.
如何查看某个文件缺少库文件 比如iptables
l
![](https://images2015.cnblogs.com/blog/924072/201607/924072-20160707025101889-1993160968.png)