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

Hi!

I've installed DBI version 1.50 and DBD-mysql version 3.0002 using ppm on Win XP. However, when I compile my perl code, I get the following error message: DBI object version 1.50 does not match $DBI::VERSION 1.51 at C:/Perl/lib/DynaLoader.pm line 253.

Any help will be really appreciated.

Thanks!

Replies are listed 'Best First'.
Re: dbi version problem
by jdtoronto (Prior) on Jul 28, 2006 at 04:26 UTC
    It almost looks as if you have a partial 1.51 installation of DBI on your machine as well! My understanding is that when Dynaloader is called by DBI's initialisation code it will attempt to load the matching compiled code. But in this case Dynaloader appears to be saying that it is seeing a 1.51 version compiled code and a 1.50 object.

    The latest version of both DBI and DBD-mysql are available from the usual PPM repositories and it might be as well to just update to the very latest and you troubles should go away. HOPEFULLY!

    jdtoronto

Re: dbi version problem
by rodion (Chaplain) on Jul 28, 2006 at 04:12 UTC
    I may not be the best one to reply, but it looks like I'm the only one around right now.

    The current versions on CPAN of DBI and DBD-mysql are 1.51 and 3.0006 respectively. You might try installing those, or maybe the more recent DBI first, and see if that corrects the problem.

    If you've got a reason for needing the older versions, then it's a good idea to tell us.

Re: dbi version problem
by pg09 (Acolyte) on Aug 02, 2006 at 03:39 UTC
    Thanks for your replies.

    The problem is that the ppm only allows me to install the version 1.50 of DBI and version 3.0002 of DBD-Mysql. When I try to upgrade these modules through ppm, it says that these modules are already latest.

    Any ideas?

    Thanks!