Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^3: Can't locate DBD/

by mje (Curate)
on Jun 06, 2012 at 14:47 UTC ( #974742=note: print w/replies, xml ) Need Help??

in reply to Re^2: Can't locate DBD/
in thread Can't locate DBD/

That long list of dirs containing files all seem to be within your Oracle installation and not within your Perl installation except for the ones:

005 /usr/perl5/site_perl/5.8.4/sun4-solaris-64int/DBD/ 006 /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBD/Oracle­.pm

The above suggests to me you have multiple Perls installed. Is /usr/bin/perl a symbolic link perhaps? I think you have not installed DBD::Oracle into the Perl you are using. The script you previously quoted started #!/usr/bin/perl and you presumably ran it with ./ but we don't know if you have another Perl on your PATH (one perhaps you were using with the CPAN shell). So, what does "which perl" return and what happens when you run:

/usr/bin/perl -le 'use DBD::Oracle; print $DBD::Oracle::VERSION'

Now repeat without a specific path e.g., just perl -le....

If it is not installed, download it and install it yourself. Although installing DBD::Oracle via the CPAN shell is possible you really need to set ORACLE_HOME or LD_LIBRARY_PATH (when using Instant Client) and set ORACLE_USERID, TWO_TASK etc to run the tests.

Also, I don't believe changing LD_LIBRARY_PATH in your Perl code will work. I believe it needs to be set before you run your script.

Lastly, don't just blindly copy module files around, it often won't work and nearly always won't work when there is some XS code and hence a shared object that goes with the module.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://974742]
[marto]: I really hate our clients network/infrastruc ture :P
LanX for they know not what they do ...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-10-20 11:15 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (261 votes). Check out past polls.