ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory解决方法
出现此问题
安装32位共享库问题,究其原因就是在64位系统安装32位软件,需要有32位库。
本文以centOs安装为例。
查看哪个安装包下有这个库
yum whatprovides libstdc++.so.6**
[root@master-yzjbz2411567139-1551927119830-0307080 mysql]# yum whatprovides libstdc++.so.6Loaded plugins: fastestmirror, securityLoading mirror speeds from cached hostfile * base: 100.125.0.40 * extras: 100.125.0.40 * updates: 100.125.0.40libstdc++-4.4.7-18.el6.i686 : GNU Standard C++ LibraryRepo : baseMatched from:Other : libstdc++.so.6 libstdc++-4.4.7-18.el6_9.2.i686 : GNU Standard C++ LibraryRepo : updatesMatched from:Other : libstdc++.so.6 libstdc++-4.4.7-4.el6.i686 : GNU Standard C++ LibraryRepo : installedMatched from:Other : Provides-match: libstdc++.so.6
这里我们选择base的,也就是:
libstdc+±4.4.7-18.el6.i686
安装
yum install libstdc++-4.4.7-18.el6.i686