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

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