Install error - RedHat - Nagios 1.2
Dhawal Doshy
dhawal at netmagicsolutions.com
Thu Mar 4 15:40:18 CET 2004
The following commands should do the trick
cd /usr/lib
ln -s /path/to/mysql/lib mysql (the mysql at the end is important)
cd /usr/include
ln -s /path/to/mysql/include mysql (the mysql at the end is important)
- dhawal
Tom wrote:
>Hi,
>
>I'm trying to install nagios-1.2 on a redhat box. I think i have done
>everything as i should however my 'make all' fails with
>
># make all
>cd ./base && make
>make[1]: Entering directory `/home/tom/nagios-1.2/base'
>gcc -g -O2 -I/opt/mysql/include -I/opt/gd-2.0.15/include/ -Dbool=char -DHAS
>_BOOL -I/usr/local/include -I/usr/lib/perl5/5.00503/i386-linux/CORE -DHAVE
>_CONFIG_H -DNSCORE -c -o checks.o checks.c
>gcc -g -O2 -I/opt/mysql/include -I/opt/gd-2.0.15/include/ -Dbool=char -DHAS
>_BOOL -I/usr/local/include -I/usr/lib/perl5/5.00503/i386-linux/CORE -DHAVE
>_CONFIG_H -DNSCORE -c -o config.o config.c
>
>etc etc and then...
>
>6-linux/CORE -DHAVE_CONFIG_H -DNSCORE -L/opt/mysql/lib -L/opt/gd-2.0.15/lib
>/ -lmysqlclient nagios.c checks.o config.o commands.o flapping.o logging.o
>notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddb.c
>../common/comments.c ../xdata/xcddb.c ../common/objects.c
>../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c perfdata.o
>../xdata/xpddefault.c ../common/downtime.c
>./xdata/xdddb.c -rdynamic -L/usr/local/lib
>/usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/pe
>rl5/5.00503/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcrypt -lm -o
>nagios
>../xdata/xrddb.c:41: mysql/mysql.h: No such file or directory
>../xdata/xrddb.c:42: mysql/errmsg.h: No such file or directory
>../xdata/xcddb.c:49: mysql/mysql.h: No such file or directory
>../xdata/xcddb.c:50: mysql/errmsg.h: No such file or directory
>../xdata/xsddb.c:46: mysql/mysql.h: No such file or directory
>../xdata/xsddb.c:47: mysql/errmsg.h: No such file or directory
>../xdata/xdddb.c:49: mysql/mysql.h: No such file or directory
>../xdata/xdddb.c:50: mysql/errmsg.h: No such file or directory
>make[1]: *** [nagios] Error 1
>
>this is a copy of my configure command....
>
>./configure --prefix=/opt/nagios-1.2 --with-nagios-user=nagios --with-nagios
>-grp=nagios --with-mail=/bin/mail --with-init-dir=/etc/rc.d/init.d --with-lo
>ckfile=/opt/nagios-1.2/nagios.pid --enable-embedded-perl --with-mysql-xdata
>--with-mysql-status --with-mysql-comments --with-mysql-extinfo --with-mysql-
>retention --with-mysql-object --with-mysql-downtime --with-mysql-lib=/opt/my
>sql/lib --with-mysql-inc=/opt/mysql/include --with-gd-lib=/opt/gd-2.0.15/lib
>/ --with-gd-inc=/opt/gd-2.0.15/include/ --with-cgiurl=/html/cgi-bin --with-h
>tmurl=/html
>
>and the result of this configure is...
>
>*** Configuration summary for nagios 1.2 02-02-2004 ***:
>
> General Options:
> -------------------------
> Nagios executable: nagios
> Nagios user/group: nagios,nagios
> Command user/group: nagios,nagios
> Embedded Perl: yes, without caching
> Install ${prefix}: /opt/nagios-1.2
> Lock file: /opt/nagios-1.2/nagios.pid
> Init directory: /etc/rc.d/init.d
>
> Web Interface Options:
> ------------------------
> HTML URL: http://localhost/html/
> CGI URL: http://localhost/html/cgi-bin/
> Traceroute (used by WAP): /usr/sbin/traceroute
>
> External Data Routines:
> ------------------------
> Status data: Database (MySQL)
> Object data: Template-based (text file)
> Comment data: Database (MySQL)
> Downtime data: Database (MySQL)
> Retention data: Database (MySQL)
> Peformance data: Default (external commands)
> Extended info data: Database (MySQL)
>
>can anyone help me get this installed?
>
>thanks
>
>Tom
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: IBM Linux Tutorials
>Free Linux tutorial presented by Daniel Robbins, President and CEO of
>GenToo technologies. Learn everything from fundamentals to system
>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>_______________________________________________
>Nagios-users mailing list
>Nagios-users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagios-users
>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
>::: Messages without supporting info will risk being sent to /dev/null
>
>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list