# About libstdc++.so.5

**URL:** <https://forums.rockylinux.org/t/about-libstdc-so-5/19908>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-8\
**Created:** [November 18, 2025, 9:08am UTC](https://forums.rockylinux.org/t/about-libstdc-so-5/19908 "2025-11-18T09:08:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![TW3345678](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@TW3345678](https://forums.rockylinux.org/u/TW3345678)\
**Post date:** [November 18, 2025, 9:08am UTC](https://forums.rockylinux.org/t/about-libstdc-so-5/19908/1 "2025-11-18T09:08:47Z")

</div>

Hello everyone,  
I’m using Rocky Linux 8.10, and my EDA tools require `libstdc++.so.5`. I’ve searched for it for a long time but still can’t find it. How can I resolve this issue?

Thank.

---

<div class="post-metadata">

**Author:** ![linuxlover](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/linuxlover/32/2227_2.png) [@linuxlover](https://forums.rockylinux.org/u/linuxlover)\
**Post date:** [November 18, 2025, 9:23am UTC](https://forums.rockylinux.org/t/about-libstdc-so-5/19908/2 "2025-11-18T09:23:30Z")

</div>

I don’t think this version will be available for Rocky Linux 8.

However on Rocky Linux 8 libstdc++.so.6 is available and part of libstdc++ package.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [November 18, 2025, 9:59am UTC](https://forums.rockylinux.org/t/about-libstdc-so-5/19908/3 "2025-11-18T09:59:41Z")

</div>

> [@TW3345678](#):
>
> libstdc++.so.5

Was presumably the version of C++ Standard Library that GCC **3.3** had. A _very long time ago_.  
RHEL 6 may have had the .5 as backward compatibility package, but one should rather  
rebuild the applications with more modern compiler.

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [November 18, 2025, 10:14am UTC](https://forums.rockylinux.org/t/about-libstdc-so-5/19908/4 "2025-11-18T10:14:36Z")

</div>

> [@linuxlover](#):
>
> I don’t think this version will be available for Rocky Linux 8.

Nope, it doesn’t even exist in RHEL8 and therefore due to that it won’t be in Rocky 8. Last version it was available on was RHEL7.

Now, whether it’s possible to compile libstdc++5 or not is another matter. RH’s docs suggest contacting the software vendor - which in this case would be the vendor of the EDA tools. The real solution is to get updated EDA tools rather than attempting to run old or legacy software.

It does exist in Debian 12 however, which would allow you to run it there for the time being until Debian 12 goes EOL. Debian 13 the new stable release doesn’t have it so that is only a temporary solution as well.

---

<div class="post-metadata">

**Author:** ![chemal](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/chemal/32/2238_2.png) [@chemal](https://forums.rockylinux.org/u/chemal)\
**Post date:** [November 18, 2025, 10:29am UTC](https://forums.rockylinux.org/t/about-libstdc-so-5/19908/5 "2025-11-18T10:29:15Z")

</div>

Grab `compat-libstdc++-33` from the [CentOS Vault](https://vault.centos.org/6.10/os/x86_64/Packages/). While this package is for CentOS 6, it will also work with Rocky 8. Be aware that this is a special case. Normally, you cannot (or at least should not) install rpm packages that were built for another distro.

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [November 18, 2025, 10:33am UTC](https://forums.rockylinux.org/t/about-libstdc-so-5/19908/6 "2025-11-18T10:33:13Z")

</div>

@chemal you would be better using the CentOS 7 release, rather than something from 2+ distributions behind. Or at least downloading the source and rebuilding it on Rocky 8.

> **[Index of /7.9.2009/os/x86\_64/Packages](https://vault.centos.org/7.9.2009/os/x86_64/Packages/)**

[compat-libstdc+±33-3.2.3-72.el7.x86\_64.rpm](https://vault.centos.org/7.9.2009/os/x86_64/Packages/compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm)

for example would be a better option than CentOS 6. That said it’s not recommended to use RPM’s from older distros. It may work, assuming it doesn’t have other dependencies that it relies on. If it does rely on other dependencies, then that is going to be problematic if it downgrades Rocky8 packages.

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [November 18, 2025, 10:38am UTC](https://forums.rockylinux.org/t/about-libstdc-so-5/19908/7 "2025-11-18T10:38:03Z")

</div>

To confirm, the CentOS 7 one will install fine:

```auto
root@rocky8:~# dnf install compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm 
Last metadata expiration check: 1:17:10 ago on Tue 18 Nov 2025 10:20:12 AM CET.
Dependencies resolved.
========================================================================================================================
 Package Architecture Version Repository Size
========================================================================================================================
Installing:
 compat-libstdc++-33 x86_64 3.2.3-72.el7 @commandline 191 k

Transaction Summary
========================================================================================================================
Install 1 Package

Total size: 191 k
Installed size: 811 k

```

so no dependency issues.

---

<div class="post-metadata">

**Author:** ![chemal](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/chemal/32/2238_2.png) [@chemal](https://forums.rockylinux.org/u/chemal)\
**Post date:** [November 18, 2025, 11:09am UTC](https://forums.rockylinux.org/t/about-libstdc-so-5/19908/8 "2025-11-18T11:09:21Z")

</div>

I wasn’t aware that CentOS 7 still had it. 🙂 Anyway, it’s age-old software and either version should do the job, if `libstdc++.so.5` is really all that is missing.

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [November 18, 2025, 8:36pm UTC](https://forums.rockylinux.org/t/about-libstdc-so-5/19908/9 "2025-11-18T20:36:48Z")

</div>

I needed the 32bit version a while back, and did something like this

```auto
rpm2cpio compat-libstdc++-33-3.2.3-72.el7.i686.rpm | cpio -t
./usr/lib/libstdc++.so.5 (symlink)
./usr/lib/libstdc++.so.5.0.7 (real file)

```

instead of installing the rpm, I just extracted the library and placed it with the application.

---

<div class="post-metadata">

**Author:** ![TW3345678](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@TW3345678](https://forums.rockylinux.org/u/TW3345678)\
**Post date:** [November 21, 2025, 5:43am UTC](https://forums.rockylinux.org/t/about-libstdc-so-5/19908/10 "2025-11-21T05:43:24Z")

</div>

Thank you all for your suggestions, the issue has been temporarily resolved.
