-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Consider adding glibc-static as a prerequisite #693
Comments
Sure, this sounds like a good idea. |
Currently trying to install
FYI the machine I'm running this command on is RHEL 7.2 release. I heard from this SO post that it's not possible without |
RHEL is a paid product and you can get a 30-day evaluation subscription from here to install any package using RHEL repositories: https://access.redhat.com/products/red-hat-enterprise-linux/evaluation |
@SCBbestof I didn't check any further as I realized I could simply download the |
Hi,
It would be a good idea to add a line in the main readme.md file specifying the need to install glibc-static on CentOS.
I am using CentOS Linux release 7.4.1708 (Core), the minimal installation, and glibc-static doesn't seem to be installed by default. This results in make exiting with the following error:
[root@localhost node_exporter]# make
>>formatting code
>>vetting code
>>running staticcheck
>>building binaries
>node_exporter
# github.com/prometheus/node_exporter
/usr/lib/golang/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
!! command failed: build -o /root/go/src/github.com/prometheus/node_exporter/node_exporter -ldflags -X github.com/prometheus/node_exporter/vendor/github.com/prometheus/common/version.Version=0.15.0 -X github.com/prometheus/node_exporter/vendor/github.com/prometheus/common/version.Revision=6e2053c557f96efb63aef3691f15335a70baaffd -X github.com/prometheus/node_exporter/vendor/github.com/prometheus/common/version.Branch=master -X github.com/prometheus/node_exporter/vendor/github.com/prometheus/common/version.BuildUser=[email protected] -X github.com/prometheus/node_exporter/vendor/github.com/prometheus/common/version.BuildDate=20171009-12:26:18 -extldflags '-static' -a -tags 'netgo static_build' github.com/prometheus/node_exporter: exit status 2
make: *** [build] Error 1
Thanks you,
Bogdan
The text was updated successfully, but these errors were encountered: