Centos lacks the Shared Library: libstdc ++. so.6

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.