Mac OS X Leopard | Nagios Core 4.3.4 | Installation issue
Posted: Thu Sep 14, 2017 3:11 am
Hi All,
I am new to Mac OS X. I am trying to install nagios core from source on my server but facing issues while compiling.
Nagios core source: https://github.com/NagiosEnterprises/na ... 3.4.tar.gz
./configure --with-httpd-conf=/opt/local/apache2/conf/extra --with-gd-lib=/opt/local/lib --with-gd-inc=/opt/local/include --prefix=/usr/local/nagios-core worked fine.
I am getting below error by when I run make all:
cd ./worker && make all
cd ./ping && make all
gcc -I.. -I ../../include -I ../.. -g -O2 -I/opt/local/include -DHAVE_CONFIG_H -o worker-ping worker-ping.c -L ../../lib -l nagios -L/opt/local/lib
ld: library not found for -lnagios
collect2: ld returned 1 exit status
make[2]: *** [worker-ping] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
libnagios.h and libnagios.a exist at nagios-4.2.0/lib location
Is there something I am missing? Any help I can get here will be appreciated. Thanks in advance.
I am new to Mac OS X. I am trying to install nagios core from source on my server but facing issues while compiling.
Nagios core source: https://github.com/NagiosEnterprises/na ... 3.4.tar.gz
./configure --with-httpd-conf=/opt/local/apache2/conf/extra --with-gd-lib=/opt/local/lib --with-gd-inc=/opt/local/include --prefix=/usr/local/nagios-core worked fine.
I am getting below error by when I run make all:
cd ./worker && make all
cd ./ping && make all
gcc -I.. -I ../../include -I ../.. -g -O2 -I/opt/local/include -DHAVE_CONFIG_H -o worker-ping worker-ping.c -L ../../lib -l nagios -L/opt/local/lib
ld: library not found for -lnagios
collect2: ld returned 1 exit status
make[2]: *** [worker-ping] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
libnagios.h and libnagios.a exist at nagios-4.2.0/lib location
Is there something I am missing? Any help I can get here will be appreciated. Thanks in advance.