linux-on-ibm-z / docs

A collection of instructions and tutorials to help you get your favorite software up and running on Linux on z
147 stars 58 forks source link

Could not build node_exporter #12

Closed djc2k closed 6 years ago

djc2k commented 6 years ago

[root@rhel-7 node_exporter]# go version go version go1.8.3 linux/s390x [root@rhel-7 node_exporter]# uname -a Linux rhel-7.2.novalocal 3.10.0-693.1.1.el7.s390x #1 SMP Thu Aug 3 08:17:56 EDT 2017 s390x s390x s390x GNU/Linux [root@rhel-7 node_exporter]# lsb_release -a LSB Version: :core-4.1-noarch:core-4.1-s390x:cxx-4.1-noarch:cxx-4.1-s390x:desktop-4.1-noarch:desktop-4.1-s390x:la390x Distributor ID: RedHatEnterpriseServer Description: Red Hat Enterprise Linux Server release 7.4 (Maipo) Release: 7.4 Codename: Maipo [root@rhel-7 node_exporter]# make

formatting code vetting code running staticcheck building binaries node_exporter

github.com/prometheus/node_exporter

/usr/lib/golang/pkg/tool/linux_s390x/link: running gcc failed: exit status 1 /bin/ld: cannot find -lpthread /bin/ld: cannot find -lc collect2: error: ld returned 1 exit status

!! command failed: build -o /data/src/github.com/prometheus/node_exporter/node_exporter -ldflags -X github.com/prom etheus/node_exporter/vendor/github.com/prometheus/common/version.Version=0.14.0 -X github.com/prometheus/node_expor ter/vendor/github.com/prometheus/common/version.Revision=3762191e66e309106e930ab11f9c080fb4428001 -X github.com/pro metheus/node_exporter/vendor/github.com/prometheus/common/version.Branch=master -X github.com/prometheus/node_expor ter/vendor/github.com/prometheus/common/version.BuildUser=root@rhel-7.2.novalocal -X github.com/prometheus/node_exp orter/vendor/github.com/prometheus/common/version.BuildDate=20170928-00:53:18 -extldflags '-static' -a -tags 'netg o static_build' github.com/prometheus/node_exporter: exit status 2 make: *** [build] Error 1