Here I am...stuck again....
I'm trying to access a database using DBD::mysql on my internet provider's
system running FreeBSD 2.2-980222-SNAP. I was able to get all of the
necessary modules installed and test (with great difficulty but it finally
This is the first simple test program I tried looking like this:
use lib '/domains/johnlathrop.com/local_lib/lib/perl5/site_perl';
my $dbh = DBI->connect('DBI:mysql:test',<username>,<password>) || die
"Database connection not made...";
I have tried running it in perl several ways:
/usr/local/bin/perl test.pl --static --config
/usr/local/bin/perl test.pl --static
/usr/local/bin/perl test.pl -static -config
/usr/local/bin/perl test.pl -static
I always get a familiar looking error like this:
install_driver(mysql) failed: Can't load
/perl5/site_perl/i386-freebsd/auto/DBD/mysql/mysql.so' for module
DBD::mysql: Can't find shared library "libmysqlclient.so.6.0" at
/usr/local/lib/perl5/i386-freebsd/5.00401/DynaLoader.pm line 155.
at (eval 1) line 2
at test.pl line 8
Some information in the mail archives suggested to add links to the
libmysqlclient.so.6.0 file. I've added links all over the place. None of
the links that I added worked.
If I could just get this to work with someone's help... :-(