lbarry has asked for the wisdom of the Perl Monks concerning the following question:

Has anyone seen this error while attempting to compile DBD:mysql?
Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base.............ok 1/5install_driver(mysql) failed: Can't load '/ +root/.cpan/build/DBD-mysql-4.005/blib/arch/auto/ +DBD/mysql/mysql.so' for module DBD::mysql: /root/.cpan/build/DBD-mysq +l-4.005/blib/arch/auto/DBD/mysql/mysql.so: undefi + ned symbol: mysql_stmt_sqlstate at /usr/lib/lib/perl5/5.8.8/i686-lin +ux/DynaLoader.pm line 230. at (eval 3) line 3 Compilation failed in require at (eval 3) line 3. Perhaps a required shared library or dll isn't installed where expecte +d at t/00base.t line 38
Any help would be greatly appreciated.

Replies are listed 'Best First'.
Re: Compile issues with DBD::mysql
by jettero (Monsignor) on Jul 18, 2007 at 16:36 UTC
    It seems to be saying, "mysql.so: undefined symbol: mysql_stmt_sqlstate" that you don't have mysql installed or that it's an older version or something. I'd start there.

    -Paul

      Thanks, I'll try rolling back a version or two.