Open shutterbugger opened 1 year ago
As the README says, you have to install the MQ client package first. Or if you have installed it, but not in the regular place, set up environment variables so the include files can be found.
@ibmmqmet Thank you sir ,the above problem has been solved. But here is another problem when I wan executing go build,
[root@localhost mq-metric-samples.5.3.1]# go build -o /usr/local/go/bin/mq_prometheus ./cmd/mq_prometheus/*.go vendor/github.com/ibm-messaging/mq-golang/v5/mqmetric/discover.go:36:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/bufio vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiDLH.go:30:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/bytes vendor/github.com/golang/protobuf/proto/registry.go:9:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/compress/gzip cmd/mq_prometheus/main.go:22:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/context cmd/mq_prometheus/main.go:23:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/crypto/tls vendor/gopkg.in/yaml.v2/decode.go:4:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/encoding vendor/gopkg.in/yaml.v2/decode.go:5:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/encoding/base64 vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqi.go:61:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/encoding/binary vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCF.go:32:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/encoding/hex vendor/github.com/sirupsen/logrus/json_formatter.go:5:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/encoding/json vendor/gopkg.in/yaml.v2/yaml.go:10:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/errors vendor/github.com/prometheus/client_golang/prometheus/expvar_collector.go:18:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/expvar pkg/config/config.go:25:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/flag cmd/mq_prometheus/config.go:22:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/fmt vendor/google.golang.org/protobuf/internal/strs/strings.go:9:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/go/token vendor/google.golang.org/protobuf/internal/impl/legacy_export.go:10:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/hash/crc32 vendor/google.golang.org/protobuf/internal/detrand/rand.go:14:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/hash/fnv vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqi.go:63:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/io pkg/config/configyaml.go:27:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/io/ioutil vendor/github.com/sirupsen/logrus/logrus.go:5:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/log vendor/gopkg.in/yaml.v2/decode.go:8:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/math vendor/golang.org/x/sys/unix/affinity_linux.go:10:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/math/bits vendor/github.com/prometheus/common/expfmt/decode.go:20:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/mime vendor/github.com/prometheus/procfs/arp.go:19:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/net vendor/github.com/prometheus/common/expfmt/decode.go:21:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/net/http vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_client.go:19:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/net/http/httptrace vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqi.go:64:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/os vendor/github.com/prometheus/client_golang/prometheus/internal/go_runtime_metrics.go:21:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/path vendor/github.com/prometheus/procfs/internal/fs/fs.go:19:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/path/filepath vendor/github.com/sirupsen/logrus/entry.go:8:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/reflect vendor/github.com/ibm-messaging/mq-golang/v5/mqmetric/channel.go:35:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/regexp vendor/golang.org/x/sys/unix/ioctl.go:11:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/runtime package command-line-arguments imports github.com/ibm-messaging/mq-golang/v5/ibmmq: cannot find package vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCF.go:34:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/runtime/debug vendor/github.com/prometheus/client_golang/prometheus/internal/go_runtime_metrics.go:22:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/runtime/metrics vendor/golang.org/x/sys/unix/syscall_unix.go:12:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/sort vendor/github.com/ibm-messaging/mq-golang/v5/mqmetric/usage.go:35:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/strconv vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqi.go:65:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/strings vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqicb.go:38:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/sync vendor/github.com/sirupsen/logrus/logger.go:8:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/sync/atomic package command-line-arguments imports github.com/ibm-messaging/mq-golang/v5/ibmmq: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/syscall vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqi.go:66:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/time vendor/gopkg.in/yaml.v2/sorter.go:5:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/unicode vendor/google.golang.org/protobuf/internal/encoding/text/decode_string.go:12:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/unicode/utf16 vendor/github.com/ibm-messaging/mq-golang/v5/mqmetric/discover.go:41:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/unicode/utf8 vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqi.go:67:2: cannot find package "." in:/usr/local/go/src/mq-metric-samples.5.3.1/vendor/unsafe
Is there anything I missed?
HI: I have a problem When I was executing go build, Would you tell me what's wrong.
github.com/ibm-messaging/mq-golang/v5/ibmmq
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqi.go:54:18: fatal error: cmqc.h: No such file or directory
include
compilation terminated.