Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version `GLIBC_2.34' not found. #96

Closed
omidmousavi opened this issue May 4, 2024 · 8 comments
Closed

Version `GLIBC_2.34' not found. #96

omidmousavi opened this issue May 4, 2024 · 8 comments
Labels
question Further information is requested

Comments

@omidmousavi
Copy link

I got these errors after run spf :

./spf: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./spf)
./spf: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./spf)
@yorukot
Copy link
Owner

yorukot commented May 4, 2024

It looks like you need to install libc.so.6.
Can you try install it?

@omidmousavi
Copy link
Author

yes.
the result of sudo apt install libc6 is this:
libc6 is already the newest version (2.31-13+deb11u10).

@yorukot
Copy link
Owner

yorukot commented May 5, 2024

I think this seems to be an apt package problem
Maybe you can try it
https://www.reddit.com/r/linux4noobs/comments/15nfcwb/version_glibc_234_not_found_when_using_the/

@yorukot yorukot added the question Further information is requested label May 6, 2024
@omidmousavi
Copy link
Author

i tried but dont working... :(

@Zxilly
Copy link

Zxilly commented May 9, 2024

Apparently, GitHub Actions' glibc version is too high causing this problem. Building precompiled binaries that link to libc should take this into account.
There are two possible solutions, either compiling under a lower version of glibc, which docker will help with, or using a c compiler that supports setting the glibc version, such as zig cc or something like that

@Zxilly
Copy link

Zxilly commented May 9, 2024

If you want to support the major operating systems, it would be a good idea to set it to 2.17, which will support almost all still-active distros. But configuring the environment can be a pain, only centos7 out of the mainstream distros I know of still uses glibc at such a low version. or 2.22/23, which is pre-installed on Ubuntu 16.
Check out https://repology.org/project/glibc/versions for the full list

@Zxilly
Copy link

Zxilly commented May 9, 2024

Or, alternatively, opt for a direct static link to musl so that you don't have to think about all this hassle. Static linking to glibc is not recommended for complex reasons, and many good explanations can be found on Google.

@yorukot
Copy link
Owner

yorukot commented May 22, 2024

I'm going to close this issue for now, but if there are any more problems, feel free to reopen it.

@yorukot yorukot closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants