You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I don't know how to use below command to replace www-data with your web-server user.
I don't what's name of my web server user is.
usermod -a -G icingacmd www-data Make sure to replace "www-data" with the name of the user your web server is running as.
Now I am getting errors while building packages.
Building Icinga 2
Once you have installed all the necessary build requirements you can build Icinga 2 using the following commands:
$ mkdir build && cd build
$ cmake ..
$ make
$ make install
While executing cmake .. command I am getting this error. -- Configuring incomplete, errors occurred!
See also "/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeOutput.log".
See also "/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeError.log".
Please also check the attached errors logs for failure
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_b3b4c/fast"
/usr/bin/make -f CMakeFiles/cmTC_b3b4c.dir/build.make CMakeFiles/cmTC_b3b4c.dir/build
make[1]: Entering directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b3b4c.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_b3b4c.dir/CheckSymbolExists.c.o -c /home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_b3b4c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b3b4c.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_b3b4c.dir/CheckSymbolExists.c.o -o cmTC_b3b4c -rdynamic
CMakeFiles/cmTC_b3b4c.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_b3b4c.dir/build.make:97: recipe for target 'cmTC_b3b4c' failed
make[1]: *** [cmTC_b3b4c] Error 1
make[1]: Leaving directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_b3b4c/fast' failed
make: *** [cmTC_b3b4c/fast] Error 2
File /home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_570a9/fast"
/usr/bin/make -f CMakeFiles/cmTC_570a9.dir/build.make CMakeFiles/cmTC_570a9.dir/build
make[1]: Entering directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_570a9.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_570a9.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_570a9
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_570a9.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_570a9.dir/CheckFunctionExists.c.o -o cmTC_570a9 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_570a9.dir/build.make:97: recipe for target 'cmTC_570a9' failed
make[1]: *** [cmTC_570a9] Error 1
make[1]: Leaving directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_570a9/fast' failed
make: *** [cmTC_570a9/fast] Error 2
Determining if the function backtrace_symbols exists in the execinfo failed with the following output:
Change Dir: /home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_1b4d2/fast"
/usr/bin/make -f CMakeFiles/cmTC_1b4d2.dir/build.make CMakeFiles/cmTC_1b4d2.dir/build
make[1]: Entering directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1b4d2.dir/CheckFunctionExists.c.o
/usr/bin/cc -g -pthread -Winvalid-pch -DCHECK_FUNCTION_EXISTS=backtrace_symbols -o CMakeFiles/cmTC_1b4d2.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_1b4d2
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1b4d2.dir/link.txt --verbose=1
/usr/bin/cc -g -pthread -Winvalid-pch -DCHECK_FUNCTION_EXISTS=backtrace_symbols CMakeFiles/cmTC_1b4d2.dir/CheckFunctionExists.c.o -o cmTC_1b4d2 -rdynamic -lexecinfo
/usr/bin/ld: cannot find -lexecinfo
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_1b4d2.dir/build.make:97: recipe for target 'cmTC_1b4d2' failed
make[1]: *** [cmTC_1b4d2] Error 1
make[1]: Leaving directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_1b4d2/fast' failed
make: *** [cmTC_1b4d2/fast] Error 2
The text was updated successfully, but these errors were encountered:
I am getting errors while installing building Icinga Package from Github.
I followed these step to create user and user groups.
addgroup -S icinga
addgroup -S icingacmd
adduser -S -D -H -h /var/spool/icinga2 -s /sbin/nologin -G icinga -g icinga icinga
adduser icinga icingacmd
But I don't know how to use below command to replace www-data with your web-server user.
I don't what's name of my web server user is.
usermod -a -G icingacmd www-data
Make sure to replace "www-data" with the name of the user your web server is running as.
Now I am getting errors while building packages.
Building Icinga 2
Once you have installed all the necessary build requirements you can build Icinga 2 using the following commands:
$ mkdir build && cd build
$ cmake ..
$ make
$ make install
While executing cmake .. command I am getting this error.
-- Configuring incomplete, errors occurred!
See also "/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeOutput.log".
See also "/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeError.log".
Please also check the attached errors logs for failure
The text was updated successfully, but these errors were encountered: