[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]

[Hilos de Discusión] [Fecha] [Tema] [Autor]

Re: [ealabarce en solutions-group com mx: Re: [Ayuda] nagios]



mtzcesar en queretaro podernet com mx wrote:

instale con las versiones iguales y me sigue maracando el mismo error
alguna otra idea ?
gracias

Ya hiciste esto:

NOTE: After you install the necessary libraries on your system:
    1. Make sure /etc/ld.so.conf has an entry for the directory in
       which the MySQL libraries are installed.
    2. Run 'ldconfig' to update the run-time linker options.
    3. Run 'make clean' in the Nagios distribution to clean out
       any old references to your previous compile.
    4. Rerun the configure script.

dices que si estan bien las rutas en /etc/ld.so.conf, ahora ejcuta ldconfig, haces un make clean y vuelves a ejecutar el script de configuracions ./configure.





----- Forwarded message from Ernesto Alabarce <ealabarce en solutions-group com mx> -----

X-Original-To: mtzcesar en sjr podernet com mx
Delivered-To: mtzcesar en sjr podernet com mx
From: Ernesto Alabarce <ealabarce en solutions-group com mx>
Subject: Re: [Ayuda] nagios
In-reply-to: <20050129015224 GA14168 en queretaro podernet com mx>
To: mtzcesar en queretaro podernet com mx,
	ayuda linux <ayuda en linux org mx>
X-Accept-Language: en-us, en
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-imss-version: 2.019
Errors-To: ayuda-admin en linux org mx
X-BeenThere: ayuda en linux org mx
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:ayuda-request en linux org mx?subject=help>
List-Post: <mailto:ayuda en linux org mx>
List-Subscribe: <https://mail.linux.org.mx/cgi-bin/mailman/listinfo/ayuda>,
	<mailto:ayuda-request en linux org mx?subject=subscribe>
List-Id: GNU/Linux help list <ayuda.linux.org.mx>
List-Unsubscribe: <https://mail.linux.org.mx/cgi-bin/mailman/listinfo/ayuda>,
	<mailto:ayuda-request en linux org mx?subject=unsubscribe>
List-Archive: <https://mail.linux.org.mx/pipermail/ayuda/>
X-Original-Date: Fri, 28 Jan 2005 21:59:28 -0600
Date: Fri, 28 Jan 2005 21:59:28 -0600
X-Virus-Scanned: by amavisd-new at queretaro.podernet.com.mx
X-Spam-Status: No, hits=-1.4 tagged_above=-999.0 required=5.5 tests=BAYES_00,
RCVD_IN_DSBL, UNWANTED_LANGUAGE_BODY
X-Spam-Level:
Lo que pasa es que lo estas configurando con soporte para MySQL y no
tienes las librerias instaladas, instala el source de MySql y listo,
porque segun los mensaje que manda con encuentra las cabeceras (HEADERS)
de mysql, recuerda tener instaladas las mismas versiones de fuentes y
binarios de MySQL.

Espero esto te ayude....

Un saludo a todos en la lista, tambien a Ivan... porque no....

mtzcesar en queretaro podernet com mx wrote:

trato de instalar nagios con estas opciones

./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-grp=nagios -with-template-objects --with-mysql-xdata --with-mysql-status --with-mysql-comments --with-mysql-extinfo --with-mysql-retention --with-mysql-downtime --with-template-extinfo --with-mysql-lib --with-mysql-inc
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for strip... (cached) /usr/bin/strip
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for ctype.h... (cached) yes
checking for dirent.h... (cached) yes
checking for errno.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for getopt.h... (cached) yes
checking for grp.h... (cached) yes
checking for limits.h... (cached) yes
checking for math.h... (cached) yes
checking for pwd.h... (cached) yes
checking for signal.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking for syslog.h... (cached) yes
checking for unistd.h... (cached) yes
checking for uio.h... (cached) no
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/ipc.h... (cached) yes
checking for sys/msg.h... (cached) yes
checking for working const... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for tm_zone in struct tm... (cached) yes
checking for mode_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking return type of signal handlers... (cached) void
checking for uid_t in sys/types.h... (cached) yes
checking type of array argument to getgroups... (cached) gid_t
checking for strdup... (cached) yes
checking for strstr... (cached) yes
checking for strtoul... (cached) yes
checking for initgroups... (cached) yes
checking for type of socket size... size_t
checking for mail... (cached) /bin/mail
Init script directory:  /etc/rc.d/init.d
We'll use MySQL database routines (in xdata/xsddb.*) for status data I/O...
We'll use MySQL database routines (in xdata/xcddb.*) for comment data I/O...
We'll use template-based routines (in xdata/xedtemplate.*) for extended data I/O... We'll use MySQL database routines (in xdata/xrddb.*) for retention data I/O... We'll use template-based routines (in xdata/xodtemplate.*) for object data I/O... We'll use default routines (in xdata/xpddefault.*) for performance data I/O... We'll use MySQL database routines (in xdata/xdddb.*) for scheduled downtime data I/O...
checking for main in -lmysqlclient... (cached) no


*** MySQL library could not be located... **************************

You chose to compile Nagios with MySQL support, but I was unable to
locate the MySQL library on your system.  If the library is
installed,  use the --with-mysql-lib and --with-mysql-inc arguments
to specify the locations of the MySQL library and include files.

NOTE: After you install the necessary libraries on your system:
   1. Make sure /etc/ld.so.conf has an entry for the directory in
      which the MySQL libraries are installed.
   2. Run 'ldconfig' to update the run-time linker options.
   3. Run 'make clean' in the Nagios distribution to clean out
      any old references to your previous compile.
   4. Rerun the configure script.

********************************************************************


pero cdo le doy el make all me marca este error

make all cd ./base && make make[1]: Entering directory `/usr/local/nagios-1.2/base' gcc -g -O2 -Iyes -DHAVE_CONFIG_H -DNSCORE -Lyes 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 -lm -o nagios
/tmp/ccgIIkmU.o(.text+0x378): En la función `xrddb_initialize':
../xdata/xrddb.c:215: undefined reference to `mysql_init'
/tmp/ccgIIkmU.o(.text+0x3f2): En la función `xrddb_connect':
../xdata/xrddb.c:252: undefined reference to `mysql_real_connect'
/tmp/ccgIIkmU.o(.text+0x40f):../xdata/xrddb.c:254: undefined reference to `mysql_close'
/tmp/ccgIIkmU.o(.text+0x464): En la función `xrddb_disconnect':
../xdata/xrddb.c:299: undefined reference to `mysql_close'
/tmp/ccgIIkmU.o(.text+0x47c): En la función `xrddb_query':
../xdata/xrddb.c:329: undefined reference to `mysql_query'
/tmp/ccgIIkmU.o(.text+0xd5c): En la función `xrddb_read_program_information':
../xdata/xrddb.c:850: undefined reference to `mysql_store_result'
/tmp/ccgIIkmU.o(.text+0xd86):../xdata/xrddb.c:854: undefined reference to `mysql_fetch_row' /tmp/ccgIIkmU.o(.text+0xe4c):../xdata/xrddb.c:867: undefined reference to `mysql_free_result'
/tmp/ccgIIkmU.o(.text+0xf00): En la función `xrddb_read_host_information':
../xdata/xrddb.c:951: undefined reference to `mysql_store_result'
/tmp/ccgIIkmU.o(.text+0xf2a):../xdata/xrddb.c:951: undefined reference to `mysql_fetch_row' /tmp/ccgIIkmU.o(.text+0x10ec):../xdata/xrddb.c:1004: undefined reference to `mysql_free_result' /tmp/ccgIIkmU.o(.text+0x1178): En la función `xrddb_read_service_information':
../xdata/xrddb.c:1129: undefined reference to `mysql_store_result'
/tmp/ccgIIkmU.o(.text+0x11a2):../xdata/xrddb.c:1129: undefined reference to `mysql_fetch_row' /tmp/ccgIIkmU.o(.text+0x13f1):../xdata/xrddb.c:1195: undefined reference to `mysql_free_result'
/tmp/ccVF9Rpn.o(.text+0x37c): En la función `xcddb_initialize':
../xdata/xcddb.c:234: undefined reference to `mysql_init'
/tmp/ccVF9Rpn.o(.text+0x3ee): En la función `xcddb_connect':
../xdata/xcddb.c:259: undefined reference to `mysql_real_connect'
/tmp/ccVF9Rpn.o(.text+0x40b):../xdata/xcddb.c:261: undefined reference to `mysql_close'
/tmp/ccVF9Rpn.o(.text+0x460): En la función `xcddb_disconnect':
../xdata/xcddb.c:303: undefined reference to `mysql_close'
/tmp/ccVF9Rpn.o(.text+0x478): En la función `xcddb_query':
../xdata/xcddb.c:329: undefined reference to `mysql_query'
/tmp/ccVF9Rpn.o(.text+0x5c0): En la función `xcddb_validate_host_comments':
../xdata/xcddb.c:477: undefined reference to `mysql_store_result'
/tmp/ccVF9Rpn.o(.text+0x5d9):../xdata/xcddb.c:477: undefined reference to `mysql_fetch_row' /tmp/ccVF9Rpn.o(.text+0x66c): En la función `xcddb_validate_service_comments':
../xdata/xcddb.c:566: undefined reference to `mysql_store_result'
/tmp/ccVF9Rpn.o(.text+0x685):../xdata/xcddb.c:566: undefined reference to `mysql_fetch_row'
/tmp/ccVF9Rpn.o(.text+0x7fa): En la función `xcddb_save_host_comment':
../xdata/xcddb.c:748: undefined reference to `mysql_insert_id'
/tmp/ccVF9Rpn.o(.text+0x9ca): En la función `xcddb_save_service_comment':
../xdata/xcddb.c:847: undefined reference to `mysql_insert_id'
/tmp/ccpQOqA9.o(.text+0x3e8): En la función `xsddb_initialize':
../xdata/xsddb.c:253: undefined reference to `mysql_init'
/tmp/ccpQOqA9.o(.text+0x462): En la función `xsddb_connect':
../xdata/xsddb.c:286: undefined reference to `mysql_real_connect'
/tmp/ccpQOqA9.o(.text+0x47f):../xdata/xsddb.c:288: undefined reference to `mysql_close'
/tmp/ccpQOqA9.o(.text+0x4e4): En la función `xsddb_disconnect':
../xdata/xsddb.c:335: undefined reference to `mysql_close'
/tmp/ccpQOqA9.o(.text+0x4fc): En la función `xsddb_check_connection':
../xdata/xsddb.c:363: undefined reference to `mysql_errno'
/tmp/ccpQOqA9.o(.text+0x525):../xdata/xsddb.c:369: undefined reference to `mysql_close'
/tmp/ccpQOqA9.o(.text+0x664): En la función `xsddb_query':
../xdata/xsddb.c:463: undefined reference to `mysql_query'
/tmp/ccA7uW1X.o(.text+0x37c): En la función `xdddb_initialize':
../xdata/xdddb.c:234: undefined reference to `mysql_init'
/tmp/ccA7uW1X.o(.text+0x3ee): En la función `xdddb_connect':
../xdata/xdddb.c:259: undefined reference to `mysql_real_connect'
/tmp/ccA7uW1X.o(.text+0x40b):../xdata/xdddb.c:261: undefined reference to `mysql_close'
/tmp/ccA7uW1X.o(.text+0x460): En la función `xdddb_disconnect':
../xdata/xdddb.c:303: undefined reference to `mysql_close'
/tmp/ccA7uW1X.o(.text+0x478): En la función `xdddb_query':
../xdata/xdddb.c:329: undefined reference to `mysql_query'
/tmp/ccA7uW1X.o(.text+0x57d): En la función `xdddb_validate_host_downtime':
../xdata/xdddb.c:473: undefined reference to `mysql_store_result'
/tmp/ccA7uW1X.o(.text+0x595):../xdata/xdddb.c:473: undefined reference to `mysql_fetch_row' /tmp/ccA7uW1X.o(.text+0x651): En la función `xdddb_validate_service_downtime':
../xdata/xdddb.c:587: undefined reference to `mysql_store_result'
/tmp/ccA7uW1X.o(.text+0x669):../xdata/xdddb.c:587: undefined reference to `mysql_fetch_row'
/tmp/ccA7uW1X.o(.text+0x80a): En la función `xdddb_save_host_downtime':
../xdata/xdddb.c:788: undefined reference to `mysql_insert_id'
/tmp/ccA7uW1X.o(.text+0x9e2): En la función `xdddb_save_service_downtime':
../xdata/xdddb.c:887: undefined reference to `mysql_insert_id'
/tmp/ccA7uW1X.o(.text+0xc11): En la función `xdddb_read_host_downtime':
../xdata/xdddb.c:1107: undefined reference to `mysql_store_result'
/tmp/ccA7uW1X.o(.text+0xc35):../xdata/xdddb.c:1107: undefined reference to `mysql_fetch_row' /tmp/ccA7uW1X.o(.text+0xd17):../xdata/xdddb.c:1116: undefined reference to `mysql_free_result' /tmp/ccA7uW1X.o(.text+0xd34):../xdata/xdddb.c:1149: undefined reference to `mysql_free_result'
/tmp/ccA7uW1X.o(.text+0xd89): En la función `xdddb_read_service_downtime':
../xdata/xdddb.c:1238: undefined reference to `mysql_store_result'
/tmp/ccA7uW1X.o(.text+0xdad):../xdata/xdddb.c:1238: undefined reference to `mysql_fetch_row' /tmp/ccA7uW1X.o(.text+0xe93):../xdata/xdddb.c:1247: undefined reference to `mysql_free_result' /tmp/ccA7uW1X.o(.text+0xeb0):../xdata/xdddb.c:1280: undefined reference to `mysql_free_result'
collect2: ld devolvió el estado de salida 1
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/usr/local/nagios-1.2/base'
make: *** [all] Error 2



alguna idea ?


_______________________________________________
Ayuda mailing list
Ayuda en linux org mx
Para salir de la lista: http://mail.linux.org.mx/cgi-bin/mailman/listinfo/ayuda/









_______________________________________________
Ayuda mailing list
Ayuda en linux org mx
Para salir de la lista: http://mail.linux.org.mx/cgi-bin/mailman/listinfo/ayuda/

----- End forwarded message -----


_______________________________________________
Ayuda mailing list
Ayuda en linux org mx
Para salir de la lista: http://mail.linux.org.mx/cgi-bin/mailman/listinfo/ayuda/








[Hilos de Discusión] [Fecha] [Tema] [Autor]