kubernetes / node-problem-detector

This is a place for various problem detectors running on the Kubernetes nodes.
Apache License 2.0
2.9k stars 624 forks source link

Unable to Install node-problem-detector version v0.8.19 on Rocky Linux version 8.10 #930

Closed sudheernv closed 1 month ago

sudheernv commented 1 month ago

Hi!

Installation of node-problem-detector-v0.8.19-linux_amd64.tar.gz (https://github.com/kubernetes/node-problem-detector/releases/download/v0.8.19/node-problem-detector-v0.8.19-linux_amd64.tar.gz) on rocky linux OS gives below error.

Installation Error: libc.so.6(GLIBC_2.32)(64bit) is needed by node-problem-detector-0.8.19 libc.so.6(GLIBC_2.34)(64bit) is needed by node-problem-detector-0.8.19

GCC Version Installed On Host: $ ldd --version ldd (GNU libc) 2.28

Since upgrading gcc version on host is not an option, should I build the project with CGO_ENABLED:=0? If yes, could you pls provide the necessary flags to set for the build.

AnishShah commented 1 month ago

We need cgo to build log-counter binary. You could disable it by running ENABLE_JOURNALD=0 make build-tar: https://github.com/kubernetes/node-problem-detector/blob/369020d878d03fffcb35d40482c3d400448ce1a4/Makefile#L97

AnishShah commented 1 month ago

/close

Please reopen if the above comment doesn't help.

k8s-ci-robot commented 1 month ago

@AnishShah: Closing this issue.

In response to [this](https://github.com/kubernetes/node-problem-detector/issues/930#issuecomment-2244182585): >/close > >Please reopen if the above comment doesn't help. Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.