http://www.perlmonks.org?node_id=1225789


in reply to Re: DynaLoader can't resolve multiple Linux shared objects
in thread DynaLoader can't resolve multiple Linux shared objects

I'm not sure how to do that, but will I look into it... That really sounds like what I need because this was just a simple test case and the module will not be located in such a convenient location

So CLOSE! I added the:

-Wl,-rpath,'$ORIGIN'

to the g++ command like your helpful link told me... now it works when I run perl test.pl without LD_LIBRARY_PATH being set, and I can have the .so in ".' or './auto/LicenseInterface' or '../COMMON/auto/LicenseInterface'

However, the perlApp exe file still does not work, but its the libperl.so that it can't find now, so it did resolve the libLicIntfcLib.so and liblmgr11.so files

DynaLoader.pm loaded (../COMMON/LicenseInterface, /lib /usr/lib /usr/l +ocal/lib) DynaLoader::bootstrap for LicenseInterface (auto/LicenseInterface/Lice +nseInterface.so) Can't load 'auto/LicenseInterface/LicenseInterface.so' for module Lice +nseInterface: libperl.so: cannot open shared object file: No such fil +e or directory at /</home/boleary/git_repos/CE_TOOLS/testLib/BUILD_TE +MP/cadEnhance/tools/TESTLIB/testLib>DynaLoader.pm line 224. at /</home/boleary/git_repos/CE_TOOLS/testLib/BUILD_TEMP/cadEnhance/t +ools/TESTLIB/testLib>LicenseInterface.pm line 11.