Hello, I’ve got a little problem with build the Icinga2 from sources.
I’m using this doc as an example -> https://icinga.com/docs/icinga2/latest/doc/21-development/#building-icinga-2-example
The problem is when I’m using USE_SYSTEMD=On in my commands
cmake -DCMAKE_BUILD_TYPE=Debug
-DICINGA2_UNITY_BUILD=OFF
-DUSE_SYSTEMD=ON
-DBoost_NO_BOOST_CMAKE=TRUE
-DBoost_NO_SYSTEM_PATHS=TRUE
-DBOOST_LIBRARYDIR=/usr/lib64/boost169
-DBOOST_INCLUDEDIR=/usr/include/boost169
-DBoost_ADDITIONAL_VERSIONS=‘1.69;1.69.0’
-DCMAKE_INSTALL_PREFIX=/opt/icinga2…;
make -j2;
make -j2 install
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DICINGA2_WITH_TESTS=ON
-DUSE_SYSTEMD=ON
-DICINGA2_UNITY_BUILD=ON
-DBoost_NO_BOOST_CMAKE=TRUE
-DBoost_NO_SYSTEM_PATHS=TRUE
-DBOOST_LIBRARYDIR=/usr/lib64/boost169
-DBOOST_INCLUDEDIR=/usr/include/boost169
-DBoost_ADDITIONAL_VERSIONS=‘1.69;1.69.0’
-DCMAKE_INSTALL_PREFIX=/opt/icinga2…;
make -j2;
make -j2 install
everything is ok after build process, icinga is working but the systemd unit file doesn’t create. I’ve tried different ways to fix this but can’t solve the problem.
Could you help me with this problem?