Hi

I have need to log data from a bunch oc secure trustix/linux machines
these machines are minimally configured and purpose built to be NMS
machines
so i want very few services/deamons running on them. So my question
is:

I want to be able to wrtie to a mysql db on a remote machine and to
this end have installed:

DBI-1.39/
Net-Pcap-0.04/
Net-PcapUtils-0.01/
NetPacket-0.04/

and tried to test connectivity

using
#!/usr/bin/perl

use DBI;
use strict;

my $dbh = DBI->connect("DBI:mysql:database=snort;host=spsgc:3306 ","zork","<password>");


my $sth = $dbh->prepare (qq{ select acid_event.sid,acid_event.cid
from acid_event});
$sth->execute();


when I execute it I get:
rootntcmon /scripts# perl test.pl
install_driver(mysql) failed: Can't locate DBD/mysql.pm in INC (INC
contains: /usr/lib/perl5/5.8.0/i586-linux /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i586-linux
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i586-linux
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
(eval 1) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: ExampleP, Proxy, Sponge.
at test.pl line 15


so I try to install the mysql driver only to get:








rootntcmon /usr/local/src/DBD-mysql-2.9003# perl Makefile.PL
Can't exec "mysql_config": No such file or directory at Makefile.PL
line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL
line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL
line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL
line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL
line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Failed to determine directory of mysql.h. Use

perl Makefile.PL --cflags=-I<dir>

to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type

perl Makefile.PL --help



Do I actually have to install mysql locally to make this work ?