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.

  • Comment on Failing to load module shared libraries on Solaris

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