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

./shovel: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./shovel) when building on ubuntu 22 #245

Closed
vmaark opened this issue Mar 19, 2024 · 6 comments

Comments

@vmaark
Copy link

vmaark commented Mar 19, 2024

Trying to use the binary on ubuntu but I ran into the following issue:

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

After some googling seems like a solution could be building with CGO_ENABLED=0, see e.g. aws/aws-lambda-go#340

@ryandotsmith
Copy link
Member

OK. Let me try to reproduce. Here is what I'm seeing, can you share your OS details?

% uname -a
Linux janus 6.2.0-1017-aws #17~22.04.1-Ubuntu SMP Fri Nov 17 21:07:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

% curl -LO https://indexsupply.net/bin/main/linux/amd64/shovel

% md5sum shovel 
57f968a22b8eac1f8bbedfacb74e269c  shovel

% chmod +x shovel
% ./shovel -version
vmain b274

@vmaark
Copy link
Author

vmaark commented Mar 19, 2024

sure

uname -a
Linux racknerd-24549c 5.4.0-28-generic #32-Ubuntu SMP Wed Apr 22 17:40:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

curl -LO https://indexsupply.net/bin/main/linux/amd64/shovel

md5sum shovel
57f968a22b8eac1f8bbedfacb74e269c  shovel

chmod +x shovel

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

@ryandotsmith
Copy link
Member

I bet if you updated the linux kernel or ubuntu version this problem would go away. Also, I did just build shovel with cgo disabled (we aren't using it anyways) using:

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /tmp/shovel ./cmd/shovel

Want to give this: shovel.zip a try?

@vmaark
Copy link
Author

vmaark commented Mar 20, 2024

the zip works as expected

 ./shovel -version
v b274-

./shovel -help
Usage of ./shovel:
  -config string
    	task config file
  -l string
    	dashboard server listen address (default "localhost:8546")
  -notx
    	disable pg tx
  -pqxtest.d postgres -d
    	postgres debug level (see postgres -d)
  -print-schema
    	print schema and exit
  -profile string
    	run profile after indexing
  -skip-migrate
    	do not run db migrations on startup
  -v	verbose logging
  -version
    	version

ryandotsmith added a commit that referenced this issue Mar 20, 2024
@ryandotsmith
Copy link
Member

OK. I just added this to the automated build program. See my commit above.

Let me know if the new binaries work: https://indexsupply.net/bin/main/linux/amd64/shovel (once the aforementioned commit finishes its build process)

@vmaark
Copy link
Author

vmaark commented Mar 21, 2024

thanks @ryandotsmith, it works!

~# curl -LO --silent https://indexsupply.net/bin/main/linux/amd64/shovel
~# chmod +x shovel
~# ./shovel -version
vmain 3e1c

@vmaark vmaark closed this as completed Mar 21, 2024
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