Reasons and solutions of missing Libstdc++.so.6 library
Workaround:
First, the installation library
1. See which installation package contains the library : Yum provides libstdc++.so.6
libstdc++-4.4.7-4.el6.i686
2. Follow the prompts to install the libstdc++-4.4.7-4.el6.i686
Yum Install libstdc++-4.4.7-4.el6.i686
Error:
--Finished Dependency Resolution
error:protected multilib versions:libstdc++-4.4.7-4.el6.i686! = libstdc++-4.4.7-3.el6.x86_64
You could try using--skip-broken to work around the problem
You could try Running:rpm-va--nofiles--nodigest
2.1 Solution:
Yum Update libstdc++-4.4.7-3.el6.x86_64
Then perform the command in step 2
Workaround 2:
A Lib library libz.so.1 file is missing from the system, and the relevant RPM package is automatically found using Yum installation
Yum Install libstdc++.so.6
Summary of Errors
Protected multilib Versions Generally this problem occurs when a 32-bit system is installed on a 64-bit system, with the same software that conflicts with different versions.
This information is included in the error message to indicate:
Yum detects that our installed libraries exist ( conflict ) in both zlib-1.2.3-29.el6.i686 and zlib-1.2.3-27.el6.x86_64 two packages
Yum-y Install libstdc++.so.6 --setopt=protected_multilib=false
Summary: This parameter to resolve the 64-bit operating system installed on the 32-bit package is missing Lib library dependency is very useful, because the 64-bit operating system will install the 64-bit Lib library to the/lib64 directory by default, and 32-bit applications need Lib library in the/lib directory, Lib library file names are all the same, the installation is often the above conflicting issues.
https://my.oschina.net/lionel45/blog/509476
The software containing this library has been installed, but the library file cannot be found
Method 1:
# vim /etc/ld.so.conf //在新的一行中加入库文件所在目录 /usr/lib # ldconfig //更新/etc/ld.so.cache文件
Method 2:
1.将用户用到的库统一放到一个目录,如 /usr/loca/lib# cp libXXX.so.X /usr/loca/lib/ 2.向库配置文件中,写入库文件所在目录# vim /etc/ld.so.conf.d/usr-libs.conf /usr/local/lib 3.更新/etc/ld.so.cache文件# ldconfig
The second approach, which is more convenient, has minimal changes to the original system. and/etc/ld.so.conf file content is include/etc/ld.so.conf.d/*.conf, so in the/ETC/LD.SO.CONF.D directory, to join any of the. conf suffix files, can be recognized by LD.
The Ld.so.cache update is incremental, just like the path system environment variable, not re-established from scratch, but cumulatively. The system builds the Ld.so.cache file from scratch only when it is rebooted.
MySQL FAQ collection