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

I am having a problem with DynaLoader.pm and DBD:mysql

It produces the following error when I try to run my perl code

DynaLoader::bootstrap for DBD::mysql (auto/DBD/mysql/mysql.so) [Wed, 07-Dec-11 12:40:17] install_driver(mysql) failed: DBD::mysql obj +ect version 4.020 does not match bootstrap parameter 3.0007 at /usr/l +ib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 253, <G +EN1> line 1. Compilation failed in require at (eval 17) line 3, <GEN1> line 1.

It looks like an installation error - but what did I do wrong?

Replies are listed 'Best First'.
Re: Error with DynaLoader.pm and DBD::mysql
by afoken (Chancellor) on Dec 07, 2011 at 21:27 UTC

    Looks like you copied files around instead of doing a proper install. Undo the copy and install DBD::mysql as documented.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re: Error with DynaLoader.pm and DBD::mysql
by spider79 (Initiate) on Dec 08, 2011 at 18:07 UTC

    I uninstalled the DBD::mysql modules with pm-uninstall and reinstalled it with cpan, but I see the same problem as before.