Skip to content

/lib64/libc.so.6: version `GLIBC_2.32' not found when building on linux #340

Closed
@pohzipohzi

Description

@pohzipohzi

I was running into this error when I followed the instructions in the README:

/var/task/main: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by /var/task/main)

I managed to fix it via by setting CGO_ENABLED=0 when building on linux, similar to the instructions for windows, ie

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go

Should that be included in the README, or is there a better way to fix this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions