in reply to Do XS-components require special considerations with CGI? [SOLVED]
As I read other postings with LD_LIBRARY_PATH in their titles, I see people talking about the need to “re-exec” things in order to make it actually work properly. Something about DynaLoader cacheing things...
Also, this seems vaguely like a Band-Aid® ... because I obviously do not yet understand the underlying mechanism (presumably DynaLoader) that Perl is using here. (I do understand the Linux dynamic-loader.) It seems vaguely odd to me that use base does not take care of “this, too.” Having to track-down a bunch of library-path locations does not feel right... as in “it might well work, but TMTOWTDI, and therefore is this really TBWTDI?”
Nevertheless... where's the right perldoc?
Hmmm... perldoc DynaLoader ... I'm looking hard at the discussion of the @dl_library_path variable.
The business of referring to the @INC variable looks very appealing, but... would it actually be reliable in the CGI-environment? I mean, “sure, it works in the command-line, but then again, so does my program.” As you can see, I am already specifying (I think...) the @INC entries by means of the use lib statement in the prologue of my code. (MENTAL FLASH!) Should I have put that statement in a BEGIN{} block?)
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Do XS-components require special considerations with CGI?
by locked_user sundialsvc4 (Abbot) on Feb 26, 2009 at 14:06 UTC | |
by almut (Canon) on Feb 26, 2009 at 15:13 UTC | |
by locked_user sundialsvc4 (Abbot) on Mar 04, 2009 at 16:27 UTC |