Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment

by runrig (Abbot)
on Feb 06, 2013 at 21:36 UTC ( #1017509=note: print w/ replies, xml ) Need Help??


in reply to Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment

What does it say if you unset LD_LIBRARY_PATH and you run:

ldd /usr/perl5/5.16.2/lib/site_perl/5.16.2/sun4-solaris/auto/DBD/Oracl +e/Oracle.so

If the results point to locations that don't exist, then likely your DBD::Oracle was compiled on a different system where libraries were in a different place. Now you have to set LD_LIBRARY_PATH to specify where they are on your system.

Update: Or compile DBD::Oracle on your current system so that the Oracle.so file knows where it's libraries are. On HP-UX you can use chatr to change the paths to libraries in a .so file...don't know if the same exists on solaris (don't think so). If you're really brave, maybe you can edit the paths in the .so binary yourself :-)


Comment on Re: Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017509]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2015-07-07 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls