Page 1 of 1

libzstd.so.1: cannot open shared object file [Linux]

Posted: Mon Jul 24, 2023 2:17 pm
by juancarlos
Hi all,
I tried installing GiD using the .tar.xz file unfortunately after unpacking it I get an error in terminal stating:
gid16.0.5-x64/gid.exe: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory
Therefore I cannot start GiD. This happens when I try to run gid with the 'gid' or './gid' command as stated in the README.txt file within the installation files.
After checking the lib folder I see that said library is not present. My guess is that the error happens because the library is missing in the installation file.
The same happened with the -Install file.

How can I solve this issue? Is this version related? Should I just use an older version of GiD?

OS: Linux
GiD Version & installer: gid16.0.5-linux-x64.tar.xz
Terminal command: tar -xvf gid16.0.5-linux-x64.tar.xz

Re: libzstd.so.1: cannot open shared object file [Linux]

Posted: Mon Jul 24, 2023 2:55 pm
by escolano
Try the last developer 16.1.5d,
I think that this library has been copied inside the libs of GiD

Is it an Ubuntu distribution?
Please, let us know the exact OS version.

Re: libzstd.so.1: cannot open shared object file [Linux]

Posted: Mon Jul 24, 2023 3:43 pm
by juancarlos
The Linux Distribution is: Red Hat Enterprise Linux Release 7
Release: 7.9

I tried the gid16.1.5d version (also with the .tar.xz file) but it also didn't work. I got the following error:
<directory>/gid/gid16.1.5d-x64/gid.exe: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by <directory>/gid/gid16.1.5d-x64/lib/gcc_libs/libstdc++.so.6)
<directory>/gid/gid16.1.5d-x64/gid.exe: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by <directory>/gid/gid16.1.5d-x64/lib/gcc_libs/libstdc++.so.6)
GiD exited with error code = 1 != 0
Starting GiD Safe Mode
<directory>/gid/gid16.1.5d-x64/gid.exe: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by <directory>/gid/gid16.1.5d-x64/lib/gcc_libs/libstdc++.so.6)

Re: libzstd.so.1: cannot open shared object file [Linux]

Posted: Mon Jul 24, 2023 4:24 pm
by miguel
Hi Juan Carlos,
can you try this version?
https://downloads.gidsimulation.com/#Gi ... rnel-3.10/
this version is compiled on Scientific Linux 7, hopefully similar to your red hat 7.9.

best,

Re: libzstd.so.1: cannot open shared object file [Linux]

Posted: Mon Jul 24, 2023 5:12 pm
by juancarlos
Hi Miguel,
Thanks, I can try that developer version and see if it works.
I found that version 16.0.1 worked fine, I was able to open GiD.
For versions 16.0.4, 16.0.3, 16.0.2 I get a similar but different error:
gid.exe: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by <directory>/gid/gid16.0.4-x64/lib/gcc_libs/libstdc++.so.6)

Not sure if the issue was specific to my system, distro or some bug in the installation files but at least an earlier version did work.
Let me know if I should communicate it somewhere else in case it helps.

Re: libzstd.so.1: cannot open shared object file [Linux]

Posted: Mon Jul 24, 2023 6:49 pm
by miguel
Hi JuanCarlos,
we changed the compilation and packaging Linux system from our old Scientific Linux 7.4 to a more modern Ubuntu 16.0.4 and GiD version 16.0.1 was the last version compiled on SL 7.4.

That is why gid requires support for a newer GLIBC_XXX version than the one provided by SL7 or RH7.

i recompiled last developer version 16.1.5d for an 10 year old cluster running Scientific Linux 7.9 and published at the link i provided you: https://downloads.gidsimulation.com/#Gi ... rnel-3.10/

So, i think it will work on your system. Please tell us if it does or not.

Best,

Re: libzstd.so.1: cannot open shared object file [Linux]

Posted: Wed Jul 26, 2023 2:03 pm
by juancarlos
Hi Miguel,
Understood, thanks for the insight.
I tried the developer version 16.1.5d from the link provided and it also worked on my system. Thank you very much.
Best,

Re: libzstd.so.1: cannot open shared object file [Linux]

Posted: Tue Sep 05, 2023 11:28 am
by Ladiandal92
juancarlos wrote: Wed Jul 26, 2023 2:03 pm Hi Miguel,
Understood, thanks for the insight.
I tried the developer version 16.1.5d from the link provided and it also worked on my system. Thank you very much.
Best,
the developer version 16.1.5d doesn't run for me.

Re: libzstd.so.1: cannot open shared object file [Linux]

Posted: Wed Sep 06, 2023 9:05 am
by escolano
Unfortunately Linux has drawbacks related with the binary compatibility of a compiled program, it is not possible to do a single compilation able to run in all distros.
Depending on your operating system maybe you can run other compiled versions.

Please, provide more information of your case.
What is your exact operating system?
It print some error message when running .gid in a console?
in case of OpenGL graphic problems try also to run .gidx