Hello, I was going through the dbi-users archive looking for an answer to compiling 
with dbi because earlier today I kept getting this error

/tmp/ccq7gV8F.o: In function `dl_init':
/tmp/ccq7gV8F.o(.text+0xb6404): undefined reference to `boot_DBI'
collect2: ld returned 1 exit status

But when I tried

#!/usr/bin/perl
require "/usr/lib/perl5/site_perl/5.6.1/i586-linux/DBI/DBD.pm";


$user   = 'username';
$pass   = password';
$dsn    = 'DBI:mysql:cvi';
$dbh = DBI->connect("$dsn", "$user", "$pass") or die "Database connection not
made: $DBI::errstr";

$dbh->disconnect();

compiling that it worked like a charm, All I changed was use::DBI; to the require 
statement and statically specify 
$dsn    = 'DBI:mysql:cvi';

So just letting everyone know perlcc really works great with DBI.

I tested this on Suse 7.3 with perl 5.6.1, i586-Linux, & Suse 8.0, perl 5.6.1 As well.

Thanks to all for posting such great information through this mailing list.

Tony

Reply via email to