zarplata / zabbix-agent-extension-mysql

Zabbix extension for monitoring mysql.
23 stars 18 forks source link

build error on CentOS 8.2.2004 #18

Closed zeduperes closed 4 years ago

zeduperes commented 4 years ago

I'm getting the error when I try to build on CentOS 8.2.2004:

Fetch dependencies dep ensure -v make: dep: Command not found make: *** [Makefile:37: deps] Error 127

zeduperes commented 4 years ago

Solved the issue! Here are all the steps I followed to build on CentOS 8.2.2004

wget https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz
tar -C /usr/local -xf go1.14.4.linux-amd64.tar.gz
export GOPATH=/usr/local
cd /usr/local/src
export PATH=$PATH:/usr/local/go/bin
source ~/.bash_profile
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dnf install -y make automake gcc gcc-c++ kernel-devel
git clone https://github.com/zarplata/zabbix-agent-extension-mysql.git
cd zabbix-agent-extension-mysql
mkdir -p /etc/zabbix/zabbix_agentd.conf.d
make
make install