I am running Windows 10 with Strawberry Perl. I use the PAR::Packer module to make executable versions of some of my Perl scripts.
I find that some modules e.g. XML::LibXML, require a Perl installation in order to run the executable. Since I'm compiling these for users without Perl this defeats the purpose of the compilation.
Is there any way I can tell before compilation whether or not the executable will need a Perl installation to run?
Assuming you want to know, if your pp - packed executable will run on a system with no perl installed, here is how I do it:
Get Process Explorer from sysinternals.com.
Pack your executable.
Run the executable and check the dlls of the process in ProcessExplorer
(view->'show lower pane' and view->'lower pane view'->'DLLs')
If you see any dll refering to a path other than the PAR temp-dir or system libraries, which are present on any windows system, go back, pack again and add these libs using pp's -l switch.
Example:
Running a.exe ...
Process Explorer displays
This will not be present on a users system ...
Rerunning pp:
This time, running a.exe ...
Process Explorer displays:
Now the process picks up the lib that was bundled with pp and extracted to PARs cache-dir.
Cheers, Chris