-
Notifications
You must be signed in to change notification settings - Fork 15
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
Bug: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found #152
Comments
update i cleared out the .sdkman directory and reinstalled sdkman as per usual instructions ... still same error.
|
I have the same error when installing SDKMAN on the latest version of a fresh Amazon Linux 2 AMI.
|
After installing and calling |
I have re-install SDK man using the fresh Amazon Linux 2 image again, but this time overriding this:
From NOW its working! This is definitely a bug on latest versions @marc0der. Do we need to create another ticket somewhere? |
same error: $ sdk help ~/.sdkman/libexec/help: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by ~/.sdkman/libexec/help) |
Hi all, I'll look into this as a matter of urgency. @michelzanini I really don't see how exporting that env var could make any difference as this is a glibc linking problem of the native binaries. Also worth mentioning that I use this on my Arch Linux dev laptop (a normal Linux) every day and have no such issues. In addition, it also runs perfectly in our CI pipeline. That said, it definitely needs to be fixed. As a quick workaround, you can remove all files under |
Sorry, I think I didn't explain very well. I meant that I downloaded the installation script file at https://get.sdkman.io. Then modified the line where
It depends on which version of CGLIB you have. The error for me is because Amazon Linux uses 2.26. If your linux is 2.28 or above, you won't get the error. There's a command to check the version of CGLIB, I believe is |
Recently started seeing similar issue (Oracle Linux 7.9, ARM A1 machine)
|
So I went digging and found some conclusive results: Here is a table of a bunch of debian based distros and their corresponding GLIBC versions:
Based on these findings, I would suggest the following: I'm happy for any suggestions to resolve this issue. For now, all I can suggest is to upgrade. Otherwise, I will consider a feature flag that will ignore the native binaries and fall back on the bash counterparts. |
Just to be clear, the distro is not ancient. Amazon Linux 2 was the latest available until Thanks. |
Puzzled why Amazon would choose to base their Linux on such a stale version of GLIBC 🤷 Anyhow, the I have no idea why you are seeing this issue between versions. Perhaps Github did something to their runner image between our release 0.2.9 to 0.3.0. I do not know if they are using a standard Ubuntu 20.04 base. I'll see what I can do to implement the feature switch for a dumbed-down CI bash experience. |
UPDATE: I looked at more alternatives and spun up a new self-hosted github runner for SDKMAN. The runner is a Centos 7 droplet on DigitalOcean (Amazon 1 is based on Centos 7 and has GLIB 2.17). I've performed a release of 0.4.0 of the native distribution, and everything seems to be working great in Docker. @michelzanini could I please ask you to confirm if that works for you now? @terefang also, please confirm that it solves your problem and feel free to close this issue if it does. |
i am stumped a bit?
|
did the following and it works now:
|
thx |
I have tested with the latest version and its working fine on Amazon Linux 2. |
Hi folks, sadly, I need to re-open this issue. As of last week, our custom GitHub runner is no longer working due to GitHub forcefully bumping all runners to use Node 20, pushing the glibc dependency to a higher version. I have yet to do a deep dive to see the fallout, but it does mean that subsequent versions of the SDKMAN native extensions will depend on a higher version than 2.17. I thought I'd mention it here so that people can begin migrating to later versions of Amazon Linux in preparation for these changes. |
Bug report
just updated sdkman via cli today (2023-06-08) and now get the following error:
To reproduce
On Linux Mint 19.3 install/update sdkman
System info
Resolution Proposal
do a static link of your binaries against musl to make them distro/version agnostic.
The text was updated successfully, but these errors were encountered: