On Fri, 7 Nov 2003, Oliver Ebenhoeh wrote:

> Hello,
> 
> I have a test script like this:
> 
> use_ok('DBI');
> my $drh = DBI->install_driver('mysql');
> 
> This script works fine if run as a standalone script or from a perl shell.
> But testing the script with "make test" results in
>  > make test
> PERL_DL_NONLAZY=1 /usr/global/bin/perl "-MExtUtils::Command::MM" "-e" 
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> 
> #     Tried to use 'DBD::mysql'.
> #     Error:  Can't load 
> '/usr/global/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/auto/DBD/mysql/mysql.so'
>  
> for module DBD::mysql: 
> /usr/global/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/auto/DBD/mysql/mysql.so:
>  
> undefined symbol: mysql_real_escape_string at 
> /usr/global/lib/perl5/5.8.0/i686-linux-thread-multi/DynaLoader.pm line 229.
> 
> Running the test without PERL_DL_NONLAZY=1 works fine too.
> 

Can you do more than just install the driver, like $drh->quote("this is a
test");, for example ?

Does 'make test' work on DBD::mysql itself?

Are you running both tests as the same user?


Rudy

Reply via email to