|We don't bite newbies here... much|
dynamic loadingby rocketboy (Novice)
|on May 07, 2006 at 06:52 UTC||Need Help??|
rocketboy has asked for the
wisdom of the Perl Monks concerning the following question:
I run a perl subroutine( call it A) which in turn issues a system call thereby calling a c executable (call it B). Now this C executable(B) has perl embedded in it. the newly developed perl interpreter (called by B ,say I name it as D ) has to make use of another perl code segment (D)which loads library at run time .
this perl code segment(D) has commands like "use UserLib.pm " and UserLib.pm has "use POSIX ; ".
Now when I run A ,i get the following error:
Can't Load POSIX.Dyanmic loading not available in this perl. You may need to build a new perl executable which supports dynamic loading or has the POSIX module statically linked to it.
please explain in layman's terms what could be done to solve this problem and also there can't be any modifications in the procedure i.e I need to call a c executable which has perl embedded in it from another perl subroutine.