For those who want or need to build Zabbix 1.8 on CentOS 5: there is an excellent RPM Spec file available at Andrew Farley’s blog. He’s also been kind enough to host a series of precompiled RPM packages.
If you look at the changelog you might find yours truly. I’ve contributed a patch to add a couple of dependencies and to fix a couple of bugs. So I thought I should share.
First of all the RPM Spec file:
If you’d like to compile your own packages you might follow this guide:
# yum groupinstall "Development Tools" # yum install rpmdevtools # rpmdev-setuptree
To compile for your running architecture:
# rpmbuild -bb --clean zabbix.spec
Or if you’d like to build for a specific architecture:
# rpmbuild -bb --clean --target i686 zabbix.spec
After the compile process you’ll find the RPM files in the following directory: