francism8 has asked for the wisdom of the Perl Monks concerning the following question:

My program uses XML::LibXML and the program run OKAY as a perl script and OKAY for executable inside the machine that has strawberry in it.

And after packing and moving to a system without perl running in Windows the program fails and below is the error Im seeing when Im running the executable file

Can't load 'C:\Users\USERAG~1\AppData\Local\Temp\par-757365726167656e7 +4\cache-7fbc98159acd276f8c1ee547b5190a92ff3b8ccb\0587ab56.xs.dll' for + module XML::LibXML: load_file:The specified module could not be foun +d at C:/Strawberryperl/perl/lib/DynaLoader.pm line 193. at C:/Strawberryperl/perl/vendor/lib/PAR/Heavy.pm line 123. BEGIN failed--compilation aborted at XML/LibXML.pm line 156. Compilation failed in require at script/changepassv8.pl line 8. BEGIN failed--compilation aborted at script/changepassv8.pl line 8.

The error is due to that the compilation is not compatible with windows 10 instead it work on windows7, windows8.x. will look to different solution on how to run this the same script in windows10. Thank you

  • Comment on Solved: Error when using the executable perl in client machine that does not have strawberry-perl in it
  • Download Code

Replies are listed 'Best First'.
Re: Error when using the executable perl in client machine that does not have strawberry-perl in it
by marto (Cardinal) on Feb 15, 2017 at 05:42 UTC

    You don't show us how you packaged the script. Use the -x option: Re: .pl to .exe conversion. See also the pp documentation for specifically including additional libraries should this fail.

Re: Error when using the executable perl in client machine that does not have strawberry-perl in it
by Anonymous Monk on Feb 15, 2017 at 08:14 UTC
    Try ppsimple.pl it should pickup all the .dlls required that LibXML.dll depends on
Re: Error when using the executable perl in client machine that does not have strawberry-perl in it
by madtoperl (Hermit) on Feb 15, 2017 at 13:48 UTC
    I have converted my perl scripts using perl2exe and it was running fine while running the executable from other windows machine. Please try using perl2exe
    you can look into below link for more details on how to use it
    http://www.indigostar.com/perl2exe.php

      It's worth pointing out the license conditions. pp when used correctly has never caused me any issues.

Re: Solved: Error when using the executable perl in client machine that does not have strawberry-perl in it
by fsmendoza (Novice) on Feb 23, 2017 at 08:36 UTC
    Thanks