![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Trouble getting a local DBD::Oracle to work (Dynaloader!)by cLive ;-) (Prior) |
on Mar 17, 2016 at 02:36 UTC ( #1158036=perlquestion: print w/replies, xml ) | Need Help?? |
cLive ;-) has asked for the wisdom of the Perl Monks concerning the following question: To debug an issue, I need to install an older DBI and DBD::Oracle. I thought I'd done everything correctly (using PREFIX after the perl MakeFile.PL call, but when I try to run the app that is using the new libraries (using a BEGIN block to add the custom lib dirs), I get this error: DBD::Oracle object version 1.74 does not match bootstrap parameter 1.64 at .../DynaLoader.pm line 223Dumping @INC in DynaLoader, I see that the custom lib dirs aren't in it. A quick scan of similar reports on Google finds me an explanation of how to reinstall a single DBD::Oracle, but how do I fix this so that I can test my app with the old version of DBD::Oracle while leaving the current in place? Edit: more info... I installed v1.64 of DBD::Oracle from a tar.gz download from CPAN:
There were test errors. On closer examination, they appeared to just be miscounts of number of tests, so I installed the module: make installIn looking in the local lib dir, I see that the DBD::Oracle code is there - both DBI.so and DBD/Oracle/Oracle.so I wrote this test script:
(the use/require DBI/DBD are copied from the app I'm debugging. The output I got was:
So, that use lib statement doesn't appear to be being honored by DynaLoader. Edit 2: I tried INSTALL_BASE instead of PREFIX and it appears to have worked! Anyone know a deep reason why that should be? The MakeMaker docs don't appear to clarify.
Back to
Seekers of Perl Wisdom
|
|