See for the official Zabbix site.

Compilation instructions

Jump to: navigation, search

Compiling Zabbix

From source archives

For compilation from source archives (released versions or nightly builds), please see the official installation instructions:

From SVN checkout

Compiling Zabbix from SVN checkout is slightly different and more complex than doing the same from a released package.


Make sure you have got pkg-config installed prior running, or you will receive an error like this:

   ./configure: line 8092: syntax error near unexpected token `IKSEMEL,iksemel,'

Generating configure script

To generate configure, run :


At this point, you can run configure and compile Zabbix directly in the checkout directory. Read below for a suggested approach instead.

Generating database-specific files

Zabbix uses database-independent template files to define database schema and data. To generate actual SQL files as well as dbschema.c file, run:

 make dbschema

If this is not done, you will get an error message like this:

 make[3]: *** No rule to make target `dbschema.c', needed by `libzbxdbhigh_a-dbschema.o'. Stop.

Generating frontend CSS files

Note: Utility sass will be needed for this step.

Since Zabbix 3.0, CSS files, used in the frontend, must be generated:

 make css

Creating source archive

Note: This is optional - one may compile Zabbix from the SVN checkout, too.

It is suggested to create source archive, just like the one that can be downloaded from the official pages. If you like a clean checkout, copy it first to some other directory for package creation purposes. To do this more than once, rsync will be helpful, as less files will have to be copied in the consequent runs:

 mkdir /tmp/zabbix
 rsync -r -l --exclude='*/.svn*' trunk /tmp/zabbix
Note: This will synchronise trunk to directory /tmp/zabbix, while deleting files that do not exist in the source and skipping SVN information.

Unfortunately, to do this, configure script has to be run, thus the machine will need at least the basic dependencies, needed for actual Zabbix compilation. To reduce amount of libraries needed, run configure without any parameters:


This should complete without errors. If it doesn't, resolve missing dependencies. Next we have to generate database schema files:

 make dbschema

And then comes actual distribution package step:

 make dist

This should leave you with zabbix-<version>.tar.gz file in the /tmp/zabbix/trunk directory, for example, /tmp/zabbix/trunk/zabbix-1.9.7.tar.gz.

For Zabbix trunk (1.9 versions since revision 15656), it is necessary to generate translation files if you wish to use other languages but English. To do that, run:

 make gettext

Utility msgfmt from gettext package is required to generate mo files.

Note: You may regenerate translations later directly in the frontend directory by running locale/

Creating database patch

Note: Separate database patch is not needed since Zabbix 2.2.

If all you need from a development branch is the database patch, you don't have to build a full package, it is enough to execute:

 cd upgrades/dbpatches/<version>/<database>
 cat patch/* > patch.sql

For example, if creating a MySQL patch for 2.0:

 cd upgrades/dbpatches/2.0/mysql
 cat patch/* > patch.sql