UPgrade from 5.8.1 to 5.8.2: compile error of ndo 3.0.6
Posted: Thu Mar 11, 2021 3:15 am
Hi
I tried to upgrade my NagiosXI development system from 5.8.1 to 5.8.2.
however I get a compile error for ndo.
first error was:
So I installed mariadb-devel fileset
This is the last part of the upgrade:
I am running
these mariadb filesets are installed:
I tried to upgrade my NagiosXI development system from 5.8.1 to 5.8.2.
however I get a compile error for ndo.
first error was:
Code: Select all
checking mysql/mysql.h presence... configure: error: Can't locate mysql headers
no
checking for mysql/mysql.h... noThis is the last part of the upgrade:
Code: Select all
*** Configuration summary for ***:
----------------
User: nagios
Group: nagios
Bin directory: /usr/local/nagios/bin
Config directory: /usr/local/nagios/etc
Nagios config: /usr/local/nagios/etc/nagios.cfg
----------------
Review the options above for accuracy. If they look okay,
type 'make all' to compile NDOUtils, or type 'make' to get
a list of make options.
cd src/ && make ndo.so
make[1]: Entering directory `/root/nagiosxi/subcomponents/ndo/ndo-3.0.6/src'
gcc -fPIC -shared -g -O2 -I/usr/include/mysql -I/usr/include/mysql/mysql ndo.c -o ndo.so -L/usr/lib64/ -lmariadb -pthread
/bin/ld: cannot find -lmariadb
collect2: error: ld returned 1 exit status
make[1]: *** [ndo.so] Error 1
make[1]: Leaving directory `/root/nagiosxi/subcomponents/ndo/ndo-3.0.6/src'
make: *** [ndo.so] Error 2
Code: Select all
#cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)Code: Select all
rpm -qa |grep -i mariadb
MariaDB-devel-10.5.9-1.el7.centos.x86_64
MariaDB-compat-10.5.9-1.el7.centos.x86_64
MariaDB-common-10.5.9-1.el7.centos.x86_64
MariaDB-client-10.5.9-1.el7.centos.x86_64
MariaDB-backup-10.5.9-1.el7.centos.x86_64
MariaDB-server-10.5.9-1.el7.centos.x86_64