Compile and install error

sudo apt-get install -y cmake make build-essential pkg-config libssl-dev libboost-all-dev bison flex libsystemd-dev
sudo apt-get install -y libmysqlclient-dev libedit-dev libyajl-dev libpq-dev

cd icinga2-2.9.1
mkdir build && cd build

[ 58%] Building CXX object lib/icinga/CMakeFiles/icinga.dir/icinga_unity.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
lib/icinga/CMakeFiles/icinga.dir/build.make:299: recipe for target ‘lib/icinga/CMakeFiles/icinga.dir/icinga_unity.cpp.o’ failed
make[2]: *** [lib/icinga/CMakeFiles/icinga.dir/icinga_unity.cpp.o] Error 4
CMakeFiles/Makefile2:1655: recipe for target ‘lib/icinga/CMakeFiles/icinga.dir/all’ failed
make[1]: *** [lib/icinga/CMakeFiles/icinga.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 58%] Built target cli
Makefile:160: recipe for target ‘all’ failed
make: *** [all] Error 2

Why are you trying to compile and not use binaries for your distribution ?

1 Like

work needs.

servers is old .
But the latest version is installed via apt-get
Client cannot connect to server

Please provide more details.

“Latest version is installed via apt-get” does that mean the latest version that is available at the old (what does that mean?) server or does this just apply to servers with up-to-date software?

“Client cannot connect to server” - Especially this part is interesting. Additional information like the icinga2 version on the client and server and error messages would be helpful to assist you.


server install icinga2-2.9.1
client install 2.11.2
so Remote Icinga instance ‘xxxx’ is not connected to ‘xxx’

2.9.1 is still available in the repository, e.g. for RHEL7:
You can manually rsync the repository path and install these packages.


thank you
i found
sudo apt-get install -y icinga2-bin=2.9.1-1.bionic icinga2-common=2.9.1-1.bionic icinga2-doc=2.9.1-1.bionic libicinga2=2.9.1-1.bionic

This will not work. Afaik the agent can’t (or at least shouldn’t) be newer than the master.

thank ,My test did fail like this