Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: linking to .so file in non-standard location

by chromatic (Archbishop)
on Mar 07, 2007 at 03:51 UTC ( #603560=note: print w/replies, xml ) Need Help??

in reply to linking to .so file in non-standard location

Push the appropriate directory onto @DynaLoader::dl_library_path before using the module which loads the .so file. DynaLoader's documentation is a little unclear about this, but it's there if you know what to look for.

Replies are listed 'Best First'.
Re^2: linking to .so file in non-standard location
by mpeters (Chaplain) on Mar 07, 2007 at 19:39 UTC
    I tried this
    BEGIN { require DynaLoader; push(@DynaLoader::dl_library_path, '/custom/path'); require Business::OnlinePayment::PayflowPro; }
    Which seems like it ought to work, but doesn't. I still get the same failure: Can't load 'lib/i686-linux/auto/PFProAPI/' for module PFProAPI: cannot open shared object file: No such file or directory at /usr/local/lib/perl5/5.8.8/i686-linux/ line 230. I even verified that DynaLoader can load the module on it's own by calling DynaLoader::dl_findfile(''); which returns the correct path. Any further advice?

    -- More people are killed every year by pigs than by sharks, which shows you how good we are at evaluating risk. -- Bruce Schneier

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://603560]
[holli]: I got into a fight yesterday and won.
[holli]: No, that's not true. I started it.
[holli]: I was company to my mother, bringing her to the therapy she has to take. There was another so called therapist outside smoking. We engaged in a talk with her and he turned out to be one of these lunatics telling people when they are sick it's their own

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-12-13 17:55 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (373 votes). Check out past polls.