From 25876aaf4302fd5af8a2fcc6c88426c43d464489 Mon Sep 17 00:00:00 2001 From: suxb201 Date: Thu, 2 Mar 2023 14:37:30 +0800 Subject: [PATCH] fix the "version `GLIBC_2.32' not found" problem --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index a34b3a9..c4e1378 100755 --- a/build.sh +++ b/build.sh @@ -17,6 +17,7 @@ dist() { echo "try build GOOS=$1 GOARCH=$2" export GOOS=$g export GOARCH=$a + export CGO_ENABLED=0 go build -v -trimpath -o "$BIN_DIR/redis-shake" "./cmd/redis-shake" unset GOOS unset GOARCH