-
Problem report
-
Resolution: Won't fix
-
Trivial
-
None
-
5.0.3
-
None
-
Ubuntu 18.04 LTS
Go Enverment:
$ go version go version go1.14.6 linux/amd64
and I set PATH in /etc/profile
#go PATH=$PATH:/usr/local/go/go1.14.6/bin export PATH
Steps to reproduce:
- execute "./configure --enable-agent2 --enable-ipv6 --prefix=/usr/local/zabbix/agent2"
- execute "sudo make install"
Result:
...... Making install in go make[2]: Entering directory '/home/sss/zabbix-5.0.3/src/go' CGO_CFLAGS="" CGO_LDFLAGS="Wl,start-group /home/sss/zabbix-5.0.3/src/zabbix_agent/logfiles/libzbxlogfiles.a /home/sss/zabbix-5.0.3/src/libs/zbxcomms/libzbxcomms.a /home/sss/zabbix-5.0.3/src/libs/zbxcommon/libzbxcommon.a /home/sss/zabbix-5.0.3/src/libs/zbxcrypto/libzbxcrypto.a /home/sss/zabbix-5.0.3/src/libs/zbxsys/libzbxsys.a /home/sss/zabbix-5.0.3/src/libs/zbxnix/libzbxnix.a /home/sss/zabbix-5.0.3/src/libs/zbxconf/libzbxconf.a /home/sss/zabbix-5.0.3/src/libs/zbxhttp/libzbxhttp.a /home/sss/zabbix-5.0.3/src/libs/zbxcompress/libzbxcompress.a /home/sss/zabbix-5.0.3/src/libs/zbxregexp/libzbxregexp.a /home/sss/zabbix-5.0.3/src/libs/zbxsysinfo/libzbxagent2sysinfo.a /home/sss/zabbix-5.0.3/src/libs/zbxsysinfo/common/libcommonsysinfo.a /home/sss/zabbix-5.0.3/src/libs/zbxsysinfo/simple/libsimplesysinfo.a /home/sss/zabbix-5.0.3/src/libs/zbxsysinfo/linux/libspechostnamesysinfo.a /home/sss/zabbix-5.0.3/src/libs/zbxsysinfo/linux/libspecsysinfo.a /home/sss/zabbix-5.0.3/src/libs/zbxexec/libzbxexec.a /home/sss/zabbix-5.0.3/src/libs/zbxalgo/libzbxalgo.a /home/sss/zabbix-5.0.3/src/libs/zbxjson/libzbxjson.a -lm -ldl -lresolv -lpcre -Wl,-end-group" GOBIN=/usr/local/zabbix/agent2/sbin \ go install -ldflags="-X zabbix.com/pkg/version.titleMessage=zabbix_agent2 -X 'zabbix.com/pkg/version.compileDate=`date +"%b %_d %Y"`' -X zabbix.com/pkg/version.compileTime=`date +%H:%M:%S` -X zabbix.com/pkg/version.compileOs=`go env GOOS` -X zabbix.com/pkg/version.compileArch=`go env GOARCH` -X main.confDefault=/usr/local/zabbix/agent2/etc/zabbix_agent2.conf" zabbix.com/cmd/zabbix_agent2 /bin/bash: go: command not found /bin/bash: go: command not found /bin/bash: go: command not found Makefile:542: recipe for target 'install' failed make[2]: *** [install] Error 127 make[2]: Leaving directory '/home/sss/zabbix-5.0.3/src/go' Makefile:494: recipe for target 'install-recursive' failed make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory '/home/sss/zabbix-5.0.3/src' Makefile:533: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1
Expected: