http://qs321.pair.com?node_id=612791


in reply to Re: Install Module issue
in thread Install Module issue

If Dynaloader is complaining about the version number as I suspected, is there not a way of specifying the version number to be used for the module that you are calling.
Tried looking this idea up and the code I could find went along these lines,

use BerkeleyDB 0.22;

But this failed to work, it still gave exactly the same error message.
Can I specifically state which version of the Perl module to use?
Cheers

Replies are listed 'Best First'.
Re^3: Install Module issue
by syphilis (Archbishop) on May 01, 2007 at 03:38 UTC
    Can I specifically state which version of the Perl module to use?

    No - the first BerkeleyDB.pm that gets found, gets loaded. If that's not the BerkeleyDB.pm that you want then you'd need to re-arrange the order in which the directories are being searched, so that the one you want to load does get found first.

    But that's all beside the point anyway - things are broken and need to be fixed. Version 0.31 of BerkeleyDB.pm is being loaded, but the BerleleyDB.dll that gets loaded is version 0.22. I would try uninstalling BerkeleyDB by running ppm remove BerkeleyDB and re-installing by running ppm install BerkeleyDB. If that doesn't take care of the mismatch then you might have to look at manually removing the BerkeleyDB installation(s) before re-installing it.

    Cheers,
    Rob