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

kcl 0.11.0 doesn't work on Amazon Linux 2 anymore (glibc) #28

Closed
joschi opened this issue Mar 8, 2023 · 3 comments
Closed

kcl 0.11.0 doesn't work on Amazon Linux 2 anymore (glibc) #28

joschi opened this issue Mar 8, 2023 · 3 comments

Comments

@joschi
Copy link

joschi commented Mar 8, 2023

kcl 0.11.0 doesn't work on Amazon Linux 2 anymore due to incompatibility with the version of glibc on that system.

kcl 0.10.0 and earlier are still working on that distribution.

$ wget https://github.com/twmb/kcl/releases/download/v0.11.0/kcl_linux_amd64.gz
--2023-03-08 16:47:42--  https://github.com/twmb/kcl/releases/download/v0.11.0/kcl_linux_amd64.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
[...]
Saving to: ‘kcl_linux_amd64.gz’

2023-03-08 16:47:43 (111 MB/s) - ‘kcl_linux_amd64.gz’ saved [12819405/12819405]

$ gunzip kcl_linux_amd64.gz 
$ chmod +x kcl_linux_amd64 
$ ./kcl_linux_amd64 
./kcl_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./kcl_linux_amd64)
./kcl_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./kcl_linux_amd64)
$ rpm -q glibc
glibc-2.26-62.amzn2.x86_64
@twmb
Copy link
Owner

twmb commented Mar 8, 2023

Should be easily resolveable as of Go 1.20 by switching to CGO_ENABLED=0

@twmb
Copy link
Owner

twmb commented Mar 14, 2023

Released v0.12.0 with CGO_ENABLED=0, please lmk if that does not fix the issue you're running into.

@twmb twmb closed this as completed Mar 14, 2023
@joschi
Copy link
Author

joschi commented Mar 14, 2023

@twmb Thanks for the quick fix!

I can confirm that kcl 0.12.0 is working on Amazon Linux 2 again. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants