in reply to Re: XSLoader/DynaLoader Can't Locate Library
in thread XSLoader/DynaLoader Can't Locate Library
Thank you, bliako, for your suggestions. Unfortunately, strace is not available on my Mac. I wasn't able to coax any additional debug information. I also tried setting the $dl_debug flag.
I did modify the Rmath.pm file to use the DynaLoader module instead of XSLoader, sort of a reverse migration. The result was the same, even when pushing the exact .dylib folder path onto @DynaLoader::dl_library_path. When I add code to the .bs file, it is executed, so I used that to modify @DynaLoader::dl_library_path.
The default values for @DynaLoader::dl_library_path are '/usr/lib' and '/usr/local/lib'. The library loads correctly from either of those locations. I was able to load the library from other locations using the dl_load_file() function.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XSLoader/DynaLoader Can't Locate Library
by bliako (Abbot) on Jun 11, 2020 at 00:33 UTC | |
by wbirkett (Acolyte) on Jun 12, 2020 at 10:21 UTC | |
by bliako (Abbot) on Jun 12, 2020 at 11:37 UTC | |
by wbirkett (Acolyte) on Jun 13, 2020 at 13:15 UTC | |
by bliako (Abbot) on Jun 13, 2020 at 14:00 UTC | |
| |
|
Re^3: XSLoader/DynaLoader Can't Locate Library
by perlfan (Parson) on Jun 11, 2020 at 01:47 UTC | |
|
Re^3: XSLoader/DynaLoader Can't Locate Library
by karlgoethebier (Abbot) on Jun 11, 2020 at 05:44 UTC |