Centos lacks the Shared Library: libstdc ++. so.6
When some commands are executed, the following error occurs when the shared library is missing:
Error while loading shared libraries: libstdc ++. so.6: cannot open shared object file: No such file or directory
Solution:
1. Execute the command: yum whatprovides libstdc ++. so.6
Admin @ rocketmq-master1 ~] # Yum whatprovides libstdc ++. so.6
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Base: tlinux-mirror.tencent-cloud.com
* Cr: tlinux-mirror.tencent-cloud.com
* Fasttrack: tlinux-mirror.tencent-cloud.com
* Tlinux: tlinux-mirror.tencent-cloud.com
* Tlinux-debuginfo: tlinux-mirror.tencent-cloud.com
* Updates: tlinux-mirror.tencent-cloud.com
Base | 2.7 kB
Cr | 3.0 kB: 00
Fasttrack | 3.5 kB
Tlinux | 3.2 kB: 00
Tlinux/primary_db | 589 kB: 00
Tlinux-debuginfo | 3.2 kB
Tlinux-debuginfo/primary_db | 34 kB: 00
Updates | 3.6 kB: 00
Libstdc ++-4.4.6-3. el6.i686: GNU Standard C ++ Library
Repo: base
Matched from:
Other: libstdc ++. so.6
Libstdc ++-4.4.6-4. tl1.i686: GNU Standard C ++ Library
Repo: tlinux
Matched from:
Other: libstdc ++. so.6
Libstdc ++-4.4.6-4. tl1.i686: GNU Standard C ++ Library
Repo: installed
Matched from:
Other: Provides-match: libstdc ++. so.6
2. yum install-y libstdc ++-4.4.6-4. tl1.i686
If a 64-bit library of a lower version exists in the system, an error is returned because the version is inconsistent.
Error:
--> Finished Dependency Resolution
Error: Protected multilib versions: libstdc ++-4.4.6-4. el6.i686! = Libstdc ++-4.4.6-3. el6.x86 _ 64
You cocould try using -- skip-broken to work around the problem
You cocould try running: rpm-Va -- nofiles -- nodigest
You can upgrade the 64-bit database before installing the 32-bit database.
Yum update libstdc ++-4.4.6-3. el6.x86 _ 64