[Snort-users] problem when: ./configure --with-mysql Please t ake a look !!!

Ian imarks at ...5068...
Sun Sep 12 02:24:01 EDT 2004


Did you actually install mysql after you untared it?  When running the 
rpm -Uhv, you are attempting to upgrade a package.  If you didn't do the 
initial install of mysql from a package, there is no package to 
upgrade.  Run rpm -qa |grep mysql to see if you have mysql installed.


Ian


Juan Fernandez wrote:

> I installed mysql-devel-3.23.58-4.i386.rpm but I received a failed 
> dependencies so I downloaded the other package and untar it 
> (mysql-3.23.58-pc-linux-i686.tar.gz) ( I use Fedora). I am 
> desperate.... I recive and errore message:
>
>  
>
> [root at ...12378... snortinstall]# rpm -Uvh mysql-devel-3.23.58-4.i386.rpm
>
> warning: mysql-devel-3.23.58-4.i386.rpm: V3 DSA signature: NOKEY, key 
> ID 4f2a6fd2
>
> error: Failed dependencies:
>
>         mysql = 3.23.58 is needed by mysql-devel-3.23.58-4
>
>  
>
> as you ca see I downloaded and untar the package that he is looking for:
>
>  
>
> [root at ...12378... snortinstall]# ls -al |grep mysql-3.23.58-pc-linux-i686
>
> drwxr-xr-x  13   503 users     4096 Sep 12 11:21 
> mysql-3.23.58-pc-linux-i686
>
> -rw-r--r--   1 root  root  10054820 Sep 15  2003 
> mysql-3.23.58-pc-linux-i686.tar.gz
>
>  
>
>  
>
> What can I do ?
>
>  
>
> Please help.
>
> *From:* Juan Fernandez [mailto:Juan.Fernandez at ...2210...]
> *Sent:* Saturday, September 11, 2004 11:42 PM
> *To:* 'Shawn Kottke'; snort-users at lists.sourceforge.net
> *Subject:* RE: [Snort-users] problem when: ./configure --with-mysql
>
>  
>
> so what to do?
>
>  
>
> install snort without the "--with mysql"
>
>  
>
> or remove the sql-client rpm packge which I installed and install from 
> the source files?
>
>  
>
> thanks !!
>
>  
>
>     -----Original Message-----
>     *From:* Shawn Kottke [mailto:skottke at ...11993...]
>     *Sent:* Saturday, September 11, 2004 9:05 PM
>     *To:* snort-users at lists.sourceforge.net
>     *Subject:* Re: [Snort-users] problem when: ./configure --with-mysql
>
>     It appears to be looking for mysql to be installed in
>     /usr/local/mysql which is a default install location for mysql.
>     Check out the installation documents offered on the snort web page
>     the docs step you through the entire installation.
>     If you are using a different server for the DB you just need to
>     adjust the output line in the snort.conf file to point to that
>     server instead of localhost.
>
>
>     Shawn Kottke
>     Datalink Corporation
>
>
>     -----Original Message-----
>     From: snort-users-admin at lists.sourceforge.net
>     <snort-users-admin at lists.sourceforge.net>
>     To: 'snort-users at lists.sourceforge.net'
>     <snort-users at lists.sourceforge.net>
>     Sent: Sat Sep 11 13:42:15 2004
>     Subject: [Snort-users] problem when: ./configure --with-mysql
>
>
>     Hi !!
>
>     I installed snort 2.2 on the sensor ( the menegment server is another
>     machine).
>
>     the sensor is Fedora.
>
>     after in untar the file I downloaded from snort.org I issue the
>     commands as
>     fololowed bot I get an error which says:
>
>     **********************************************
>       ERROR: unable to find mysql headers (mysql.h)
>       checked in the following places
>     **********************************************
>
>     here is what I did:
>
>     [root at ...12397... snort-2.2.0]# ./configure
>     --with-mysql=/usr/bin/mysql
>     checking for a BSD-compatible install... /usr/bin/install -c
>     checking whether build environment is sane... yes
>     checking for gawk... gawk
>     checking whether make sets ${MAKE}... yes
>     checking for style of include used by make... GNU
>     checking for gcc... gcc
>     checking for C compiler default output... a.out
>     checking whether the C compiler works... yes
>     checking whether we are cross compiling... no
>     checking for suffix of executables...
>     checking for suffix of object files... o
>     checking whether we are using the GNU C compiler... yes
>     checking whether gcc accepts -g... yes
>     checking dependency style of gcc... gcc3
>     checking for gcc option to accept ANSI C... none needed
>     checking for ranlib... ranlib
>     checking for gcc... (cached) gcc
>     checking whether we are using the GNU C compiler... (cached) yes
>     checking whether gcc accepts -g... (cached) yes
>     checking dependency style of gcc... (cached) gcc3
>     checking build system type... i686-pc-linux-gnu
>     checking host system type... i686-pc-linux-gnu
>     checking whether byte ordering is bigendian... no
>     checking for sparc alignment... no
>     checking how to run the C preprocessor... gcc -E
>     checking for ANSI C header files... yes
>     checking for sys/types.h... yes
>     checking for sys/stat.h... yes
>     checking for stdlib.h... yes
>     checking for string.h... yes
>     checking for memory.h... yes
>     checking for strings.h... yes
>     checking for inttypes.h... yes
>     checking for stdint.h... yes
>     checking for unistd.h... yes
>     checking for strings.h... (cached) yes
>     checking for string.h... (cached) yes
>     checking for stdlib.h... (cached) yes
>     checking for unistd.h... (cached) yes
>     checking sys/sockio.h usability... no
>     checking sys/sockio.h presence... no
>     checking for sys/sockio.h... no
>     checking paths.h usability... yes
>     checking paths.h presence... yes
>     checking for paths.h... yes
>     checking for inet_ntoa in -lnsl... yes
>     checking for socket in -lsocket... no
>     checking whether printf must be declared... no
>     checking whether fprintf must be declared... no
>     checking whether syslog must be declared... no
>     checking whether puts must be declared... no
>     checking whether fputs must be declared... no
>     checking whether fputc must be declared... no
>     checking whether fopen must be declared... no
>     checking whether fclose must be declared... no
>     checking whether fwrite must be declared... no
>     checking whether fflush must be declared... no
>     checking whether getopt must be declared... no
>     checking whether bzero must be declared... no
>     checking whether bcopy must be declared... no
>     checking whether memset must be declared... no
>     checking whether strtol must be declared... no
>     checking whether strcasecmp must be declared... no
>     checking whether strncasecmp must be declared... no
>     checking whether strerror must be declared... no
>     checking whether perror must be declared... no
>     checking whether socket must be declared... no
>     checking whether sendto must be declared... no
>     checking whether vsnprintf must be declared... no
>     checking whether snprintf must be declared... no
>     checking whether strtoul must be declared... no
>     checking for snprintf... yes
>     checking for strlcpy... no
>     checking for strlcat... no
>     checking for strerror... yes
>     checking for __FUNCTION__... yes
>     checking for floor in -lm... yes
>     checking for pcap_datalink in -lpcap... yes
>     checking pcre.h usability... yes
>     checking pcre.h presence... yes
>     checking for pcre.h... yes
>     checking for pcre_compile in -lpcre... yes
>     checking for mysql...
>
>     **********************************************
>       ERROR: unable to find mysql headers (mysql.h)
>       checked in the following places
>     **********************************************
>     root at ...12397... snort-2.2.0]# find / -name mysql.h
>     /snortinstall/snort-2.2.0/src/win32/WIN32-Includes/mysql/mysql.h
>     /snortinstall/mysql-3.23.52-pc-linux-gnu-i686/include/mysql.h
>     [root at ...12397... snort-2.2.0]# cp
>     /snortinstall/snort-2.2.0/src/win32/WIN32-Includes/mysql/mysql.h
>     /usr/bin/mysql
>     cp: overwrite `/usr/bin/mysql'? y  
>     [root at ...12397... snort-2.2.0]# whereis mysql
>     mysql: /usr/bin/mysql /usr/share/man/man1/mysql.1.gz
>
>
>     Any ideas ?
>
>     thanks !!
>
>
>
>
>     -------------------------------------------------------
>     This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
>     Project Admins to receive an Apple iPod Mini FREE for your
>     judgement on
>     who ports your project to Linux PPC the best. Sponsored by IBM.
>     Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
>     _______________________________________________
>     Snort-users mailing list
>     Snort-users at lists.sourceforge.net
>     Go to this URL to change user options or unsubscribe:
>     https://lists.sourceforge.net/lists/listinfo/snort-users
>     Snort-users list archive:
>     http://www.geocrawler.com/redir-sf.php3?list=snort-users
>




More information about the Snort-users mailing list