sdkman / sdkman-cli

The SDKMAN! Command Line Interface
https://sdkman.io
Apache License 2.0
6.08k stars 629 forks source link

Bug: /lib64/libc.so.6: version `GLIBC_2.18' (and others) not found #1227

Closed marc-guenther closed 9 months ago

marc-guenther commented 1 year ago

Bug report

I'm on OracleLinux 7.9. After successfully installing with:

curl -s "https://get.sdkman.io" | bash
source "/root/.sdkman/bin/sdkman-init.sh"

I then get this error:

[root@oraclelinux79 ~]# sdk help
/root/.sdkman/libexec/help: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /root/.sdkman/libexec/help)
/root/.sdkman/libexec/help: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /root/.sdkman/libexec/help)

System info

danuvian commented 1 year ago

It is also broken with Centos 7. The app install fines but when I run 'sdk version', I get the same errors as above.

Would be nice if we had an easy way to install an older version of sdkman.

helpermethod commented 1 year ago

@marc0der According to this blog post, the best bet would be to stick to GLIB 2.17 for the forseeable future

https://kobzol.github.io/rust/ci/2021/05/07/building-rust-binaries-in-ci-that-work-with-older-glibc.html

marc0der commented 1 year ago

I've got an outstanding task to downgrade the Ubuntu LTS version we use to build our targets in the matrix build. We'd have to go as low as 18.04 I think.

oraluben commented 11 months ago

If I want to build from source to workaround this, is that possible? The ./gradlew install command in readme seems not working since https://github.com/sdkman/sdkman-cli/commit/b02a937d8a06b29ed0c52f5b26e93f1efbabe9d8

bbossola commented 9 months ago

Broken also in Ubuntu 18.04.6 LTS. Is it possible to downgrade to a previous version?

bbossola commented 9 months ago

Ah I manage to get it working by executing:

sdk selfupdate force

See also: https://github.com/sdkman/sdkman-cli-native/issues/152

marc0der commented 9 months ago

This is definitely working on older versions of Linux now. I just installed it on a docker container running Ubuntu 18.04 and it works perfectly.

marc0der commented 9 months ago

BTW, it should have worked without the need for force. It's now required to run the selfupdate command from time to time to get the latest version.

marc0der commented 9 months ago

Closing this issue as it was fixed on the native extensions project.