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

redisFullCheck 1.4.9 执行redis-full-check.linux 报Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work #117

Open
yuqun20230302 opened this issue Mar 2, 2023 · 10 comments

Comments

@yuqun20230302
Copy link

image
如果没有安装go 只是想要修改这个参数值应该怎么做

@yangbodong22011
Copy link
Member

用1.4.8试试呢

@yuqun20230302
Copy link
Author

1.4.8是可以的

@yangbodong22011
Copy link
Member

好的,先用 1.4.8,1.4.9的编译环境估计有点问题。

@yangbodong22011
Copy link
Member

yangbodong22011 commented Mar 14, 2023

@yuqun20230302 这个新包可以帮再验证下吗?redis-full-check-1.4.9.tar.gz

如果下载比较慢,可以留下邮箱,我直接发你邮箱。

@inkinworld
Copy link

@yangbodong22011 测试了下也不行,编译的时候没有启用 CGO

@yangbodong22011
Copy link
Member

@inkinworld 是用上面评论的包吗?我看我机器上参数已经是打开的了。

$go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/bodong.ybd/.cache/go-build"
GOENV="/home/bodong.ybd/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/bodong.ybd/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/golang"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build930352136=/tmp/go-build -gno-record-gcc-switches"

@inkinworld
Copy link

@inkinworld 是用上面评论的包吗?我看我机器上参数已经是打开的了。

$go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/bodong.ybd/.cache/go-build"
GOENV="/home/bodong.ybd/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/bodong.ybd/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/golang"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build930352136=/tmp/go-build -gno-record-gcc-switches"

是用上面的包,不确定咋回事了。。

@wclssdn
Copy link

wclssdn commented Apr 7, 2023

@yangbodong22011 yangbodong22011 我试了下你发的这个版本:redis-full-check-1.4.9.tar.gz,不行,还是报错:

./redis-full-check.linux: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ./redis-full-check.linux)

@yangbodong22011
Copy link
Member

@yangbodong22011 yangbodong22011 我试了下你发的这个版本:redis-full-check-1.4.9.tar.gz,不行,还是报错:

./redis-full-check.linux: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ./redis-full-check.linux)

你这个似乎是因为 GLIBC_2.28 版本不对,不是 CGO_ENABLED 的问题,检查或者升级自己的 GLIBC 版本。

@yangbodong22011
Copy link
Member

yangbodong22011 commented Apr 27, 2023

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

4 participants