About libstdc++.so.5

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.

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.

1 Like

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.

1 Like

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.

Grab compat-libstdc++-33 from the CentOS Vault. 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.

@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.

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.

To confirm, the CentOS 7 one will install fine:

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.

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

1 Like

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

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.

1 Like

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

1 Like