Skip to content

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

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

Closed
marc-guenther opened this issue Aug 8, 2023 · 9 comments
Closed
Labels

Comments

@marc-guenther
Copy link

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

  • OS: OracleLinux 7.9
  • The output of sdk version:
    [root@oraclelinux79 ~]# sdk version
    /root/.sdkman/libexec/version: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /root/.sdkman/libexec/version)
    /root/.sdkman/libexec/version: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /root/.sdkman/libexec/version)
    /root/.sdkman/libexec/version: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /root/.sdkman/libexec/version)
    
  • Version of glibc:
    [root@oraclelinux79 ~]# yum info glibc
    Installed Packages
    Name        : glibc
    Arch        : x86_64
    Version     : 2.17
    Release     : 326.0.9.el7_9
    Size        : 13 M
    Repo        : installed
    From repo   : ol7_latest
    ...
    
@danuvian
Copy link

danuvian commented Aug 8, 2023

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
Copy link
Member

@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
Copy link
Member

marc0der commented Aug 9, 2023

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
Copy link

If I want to build from source to workaround this, is that possible? The ./gradlew install command in readme seems not working since b02a937

@bbossola
Copy link

bbossola commented Jan 4, 2024

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

@bbossola
Copy link

bbossola commented Jan 4, 2024

Ah I manage to get it working by executing:

sdk selfupdate force

See also:
sdkman/sdkman-cli-native#152

@marc0der
Copy link
Member

marc0der commented Jan 4, 2024

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
Copy link
Member

marc0der commented Jan 4, 2024

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
Copy link
Member

marc0der commented Jan 4, 2024

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

@marc0der marc0der closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants