Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Failing to load module shared libraries on Solaris

by jepri (Parson)
on Jun 07, 2002 at 05:06 UTC ( [id://172429]=perlquestion: print w/replies, xml ) Need Help??

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

The problem occurs with the DB_File module. I had to set the library paths manually with LD_LIBRARY_PATH when compiling, but it compiled (and presumably linked) fine. However when I try to use the module perl flips out claiming it can't find the shared libs. Even LD_LIBRARY_PATH doesn't help. I'm not even sure which program is meant to be loading the library. Perl? Ld? I can force the issue by setting LD_PRELOAD to the library, but this isn't a good solution for CGI scripts.

Could someone tell me what files I should be monkying with? I'm just about to drop the library files into my /usr/lib directory (as per usual Solaris practise I have them in /usr/local/BerkleyDBxx). I don't think this is a very good solution though.

____________________
Jeremy
I didn't believe in evil until I dated it.

Replies are listed 'Best First'.
(MeowChow) Re: Failing to load module shared libraries on Solaris
by MeowChow (Vicar) on Jun 07, 2002 at 05:30 UTC
    Did you do "ldconfig -R"?

    update: That's the BSD command. For Solaris, perhaps you should check the man page for "crle".

    You may also want to have a look at Why LD_LIBRARY_PATH is bad (for Solaris).

       MeowChow                                   
                   s aamecha.s a..a\u$&owag.print
      Wheeee! Perfect! Multi ++. That's exactly what I needed. Thanks MeowChow.

      ObExplanation: I've done the sysadmin courses for Solaris but not the developers ones yet. I can do this stuff on Linux, but the moved files and changed command names really trip me up sometimes.

      Thanks again.

      ____________________
      Jeremy
      I didn't believe in evil until I dated it.

        I can do this stuff on Linux, but the moved files and changed command names really trip me up sometimes.

        In that case, you may want to have a look at the Sysadmin's Unixersal Translator.

           MeowChow                                   
                       s aamecha.s a..a\u$&owag.print

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://172429]
Approved by MeowChow
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-28 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found