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

Consider building with CGO_ENABLED=0 #744

Open
flowchartsman opened this issue Feb 24, 2024 · 2 comments
Open

Consider building with CGO_ENABLED=0 #744

flowchartsman opened this issue Feb 24, 2024 · 2 comments

Comments

@flowchartsman
Copy link

I attempted to download and run cheat on a slightly older system I maintain, but got the following error:

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

This is pretty standard if the build box glibc mismatches against where the binary is running, but, considering as the package doesn't seem to use CGO, you could probably do without it and make the binaries more compatible.

@chenrui333
Copy link
Contributor

chenrui333 commented Mar 5, 2024

@flowchartsman mind sharing your linux os release (cat /etc/os-release)? Thanks!

@flowchartsman
Copy link
Author

flowchartsman commented Mar 8, 2024

$ wget -q https://github.com/cheat/cheat/releases/download/4.4.2/cheat-linux-amd64.gz
$ gunzip -c cheat-linux-amd64.gz > cheat
$ chmod 755 ./cheat
$ ./cheat
./cheat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./cheat)
./cheat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./cheat)
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

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

No branches or pull requests

2 participants