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

Installing on machine with older glibc #53

Closed
crcastle opened this issue Apr 26, 2024 · 5 comments
Closed

Installing on machine with older glibc #53

crcastle opened this issue Apr 26, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@crcastle
Copy link

My machine has glibc v2.31 (Debian Bullseye), which was too old for the kaput version v2.2.1 release file kaput-x86_64-unknown-linux-gnu.tar.gz. I got the following error when trying to run that v2.2.1 binary:

./kaput: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./kaput)
./kaput: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./kaput)
./kaput: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./kaput)

Considering I'm not a Rust dev so don't have nor want to install cargo and rustc, the easiest way for me to get a working binary was to create a statically linked binary using the following steps.

Happy to make a PR to the README with these installation instructions if you'd like.

git clone https://github.com/davidchalifoux/kaput-cli.git
docker pull rust
cd kaput-cli
docker run --rm -it -v "$PWD":/usr/src/myapp rust /bin/bash
cd /usr/src/myapp
RUSTFLAGS="-C target-feature=+crt-static" cargo build --target x86_64-unknown-linux-gnu
exit
./target/x86_64-unknown-linux-gnu/debug/kaput login

The current rust docker image contains glibc v2.36, but compiling kaput statically gets around that version not matching the v2.31 glibc on my Debian Bullseye host OS.

@crcastle crcastle changed the title Installing on machine with older glib Installing on machine with older glibc Apr 26, 2024
@davidchalifoux
Copy link
Owner

Thanks for calling this out.

I'll work on including a statically linked version of the build in the releases. IMO that'll be the best experience for people.

@davidchalifoux davidchalifoux self-assigned this Apr 30, 2024
@davidchalifoux davidchalifoux added enhancement New feature or request good first issue Good for newcomers labels Apr 30, 2024
@crcastle
Copy link
Author

Thanks for calling this out.

I'll work on including a statically linked version of the build in the releases. IMO that'll be the best experience for people.

Great. Thanks! And thanks for creating this handly CLI!

@davidchalifoux
Copy link
Owner

Try one of the builds ending in "musl" and let me know how it goes: https://github.com/davidchalifoux/kaput-cli/releases/tag/v2.2.2

@crcastle
Copy link
Author

crcastle commented May 1, 2024 via email

@davidchalifoux
Copy link
Owner

Thanks for confirming! Let me know if you run into any other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants