in reply to Re^6: Perl_croak_xs_usage problem
in thread Perl_croak_xs_usage problem
Might there be an error within PAR?
You'd have to consult PAR maintainers as to whether they consider it a error. I suspect that they'll say that you are using it wrongly.
When you package up your scripts with PAR, it not only incorporates your scripts and modules, but also as much of the installed perl--including any required DLLs--as is required to allow your script to run on a machine that does not have a perl installation. The intention being that you can distribute that single file to users and not require them to install Perl before using your code.
What you are attempting to do is run that packaged application on a system that already has a full perl installation. And a different version of Perl to that which was used during the packaging. Hence you are creating a situation whereby there are multiple executable files (dlls) with the same name but differing contents being loaded at runtime. Needless to say, this doesn't work.
Essentially, you have discovered that my guess regarding the presence of an incompatible version of perl510.dll exists within your .par file is correct. You now need to decide what to do about it. If you contact the PAR maintainers they might have a work-around?
The simplest solution would be for you to install the appropriate parts of your application--ie. just your sources files (.pls and .pms)--onto the system manually (by copying the files from the original system), and then, if necessary, repackage the application on the new system using PAR.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Perl_croak_xs_usage problem
by markuhs (Scribe) on Oct 02, 2009 at 08:31 UTC | |
by BrowserUk (Patriarch) on Oct 02, 2009 at 10:16 UTC | |
by markuhs (Scribe) on Oct 02, 2009 at 10:36 UTC | |
by BrowserUk (Patriarch) on Oct 02, 2009 at 10:50 UTC | |
by BrowserUk (Patriarch) on Oct 02, 2009 at 11:02 UTC | |
by markuhs (Scribe) on Oct 02, 2009 at 12:08 UTC | |
| |
by markuhs (Scribe) on Oct 02, 2009 at 10:40 UTC | |
|
Re^8: Perl_croak_xs_usage problem
by Anonymous Monk on Oct 02, 2009 at 08:30 UTC |