]> granicus.if.org Git - icinga2/blob - INSTALL
Fix 'make check-coverage' for VPATH builds.
[icinga2] / INSTALL
1 Installing Icinga 2
2 ===================
3
4 Please note that the current version of Icinga 2 isn't much more than a tech
5 demo. Expect some rough edges when installing and running Icinga 2.
6
7 For the "finished" version we're planning to release packages for the most
8 common Linux distributions as well as for Windows - or at least co-operate
9 with the package maintainers.
10
11 Build Requirements
12 ------------------
13
14 The following requirements need to be fulfilled in order to build the
15 application using a dist tarball (package names for RHEL and Debian in
16 parenthesis):
17
18 * GNU make (make)
19 * C++ compiler (gcc-c++ on RHEL, build-essential on Debian)
20 * OpenSSL library and header files (openssl-devel on RHEL, libssl-dev
21                                     on Debian)
22 * Boost library and header files (boost-devel on RHEL, libboost-all-dev
23                                   on Debian)
24 * optional: Doxygen (doxygen)
25
26 Packaging Requirements
27 ----------------------
28
29 In order to build a dist tarball for the application the following external
30 software components need to be installed in addition to the build requirements
31 mentioned above:
32
33 * GNU Automake (automake)
34 * GNU Autoconf (autoconf)
35 * GNU Libtool (libtool and libtool-ltdl-devel on RHEL, libtool and
36                libltdl-dev on Debian)
37 * GNU bison (bison)
38 * GNU flex (flex)
39
40 Debian Packages
41 ---------------
42
43 This program comes with its own Debian packaging scripts which may or may not
44 fully comply with the official Debian packaging requirements. These scripts can
45 be found in the 'debian' sub-directory. Binary packages can be built using
46 'dpkg-buildpackage'.
47
48 Building Icinga 2
49 -----------------
50
51 Once you have installed all the necessary build requirements you can build
52 Icinga 2 using the following commands:
53
54 $ ./configure
55 $ make
56 $ make install
57
58 The configure script supports all the usual parameters one comes to expect
59 from autoconf. In particular you may want to use --prefix to specify an
60 alternative installation prefix.
61
62 Note: The Git repository does not contain any auto-generated Autotools files,
63 i.e. there is no 'configure' script. In this case you will need to regenerate
64 the 'configure' script by running 'autogen.sh'. However, as an end-user you
65 should reconsider whether you really want to use the code from the Git
66 repository. In general it is advisable to use one of the dist tarballs instead.
67
68 Running Icinga 2
69 ----------------
70
71 Icinga 2 comes with a single binary that takes care of loading all the relevant
72 components (e.g. for check execution, notifications, etc.):
73
74 $ /tmp/i2/bin/icinga
75 [2012/09/14 10:36:12] information/icinga: Icinga application loader (version:
76                       2.0, git branch master, commit 8e4bdf38 + changes)
77 [2012/09/14 10:36:12] information/base: Syntax: ./bin/icinga -c <config-file> ...
78
79 Icinga 2 reads a single configuration file which is used to specify all
80 configuration settings (global settings, hosts, services, etc.). The
81 configuration format is explained in detail in the docs/icinga2-config.txt
82 file.
83
84 By default "make install" installs example configuration files to /etc/icinga2
85 unless you have specified a different prefix or sysconfdir.