Unable to locate libraries necessary for snx in Fedora 33

New Fedora user here

I’m running Fedora 33 and need to install snx, supposedly libstdc++5:i386 , libpam0g:i286 and compact-libstdc+±33.i686 are some of the required libraries required to run it, but I’m unable to find a match for any of them. I was able to do it in my other pc with ubuntu easily. Any help?

Thanks in advance

Hi @diaj, and welcome to the community!

It seems that libstdc++5 is no longer available in the repos (The compat-libstdc++-33.i686 package you also mentioned would contain it, but that’s only in CentOS 6/7).

Generally, you can find out which packages (if any) provide a file you’re looking for by using dnf repoquery --whatprovides like so:

# libstdc++5 x86_64
$ dnf repoquery --whatprovides /usr/lib64/libstdc++.so.5
# libstdc++5 i686
$ dnf repoquery --whatprovides /usr/lib/libstdc++.so.5

If a package contains that file, dnf will give you the package name. Here for example is the output when looking for libstdc++ 6 on my system:

$ dnf repoquery --whatprovides /usr/lib64/libstdc++.so.6
libstdc++-0:10.2.1-8.fc34.x86_64

so I know that installing the libstdc++ package would give me the library I’m looking for.

2 Likes

So I tried to do that, here’s the error that appears when I try to run snx

[dias@localhost ~]$ snx
snx: error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directory

I did the following
[dias@localhost ~] dnf repoquery --whatprovides /usr/lib64/libpam.so.0 Last metadata expiration check: 0:01:20 ago on Wed 25 Nov 2020 13:51:52 WET. pam-0:1.4.0-4.fc33.x86_64 pam-0:1.4.0-8.fc33.x86_64 [dias@localhost ~] sudo dnf install pam-0:1.4.0-4.fc33.x86_64
Last metadata expiration check: 0:01:05 ago on Wed 25 Nov 2020 13:52:20 WET.
Package pam-1.4.0-4.fc33.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

When I did it with the required packages that it requires (https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk119772), it just says
[dias@localhost ~]$ dnf repoquery --whatprovides /usr/lib64/libstdc+±33.i686
Last metadata expiration check: 0:05:01 ago on Wed 25 Nov 2020 13:51:52 WET.

And snx keeps on not working

So I don’t really know what to do know :confused:

According to that site, you need the i686-versions (located in /usr/lib rather than /usr/lib64) of those libraries. You can get the i686 versions by appending .i686 to your install command:

sudo dnf install pam.i686

Same for the other libraries. The old libstdc++.so.5 is going to be a problem though - maybe that’s why that site you linked only lists Fedora <= 30.

Sidenote: You can get a full list of the libraries snx is trying to load by using ldd /path/to/your/snx/binary

2 Likes