Install error - RedHat - Nagios 1.2

Dhawal Doshy dhawal at netmagicsolutions.com
Thu Mar 4 17:00:50 CET 2004


hmm, this will be painful, for every 'gcc -g -O2'. that you get stuck 
with chdir to that directory and run the same command in the following 
manner.

gcc -g -O2 ..-L/opt/mysql/lib -lmysqlclient -o nagios

Basically change the position of "-L/opt/mysql/lib -lmysqlclient" 
towards the end of the compilation string just before the "-o 
output_binary". If you can somehow change this in the Makefile itself 
you wont need to do it manually.

- dhawal

Tom Brown wrote:

>>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)
>>    
>>
>
>Hi,
>
>thats made things better but i'm now stuck here.
>
>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 -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
>/tmp/cc8eAtQw.o: In function `xrddb_initialize':
>/home/tom/nagios-1.2/base/../xdata/xrddb.c:215: undefined reference to
>`mysql_init'
>/tmp/cc8eAtQw.o: In function `xrddb_connect':
>/home/tom/nagios-1.2/base/../xdata/xrddb.c:252: undefined reference to
>`mysql_real_connect'
>/home/tom/nagios-1.2/base/../xdata/xrddb.c:254: undefined reference to
>`mysql_close'
>/tmp/cc8eAtQw.o: In function `xrddb_disconnect':
>/home/tom/nagios-1.2/base/../xdata/xrddb.c:299: undefined reference to
>`mysql_close'
>/tmp/cc8eAtQw.o: In function `xrddb_query':
>/home/tom/nagios-1.2/base/../xdata/xrddb.c:329: undefined reference to
>`mysql_query'
>
>any thoughts?
>
>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





More information about the Users mailing list