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

I am having the same issue as the persons in this post but I am not sure how they fixed the issue.
http://www.perlmonks.org/?node_id=920335

My goal is to have a stand alone .exe file and have all my modules packaged to use on a windows machine without perl. I know there are alternatives; however, I would really like to solve my problem.

My error is:
The locale codeset (cp1252) isn't one that perl can decode, stopped at Encode/Locale.pm line 94.
Compilation failed in require at LWP/UserAgent.pm line 1000.
Compilation failed in require at script/pan_pcap.pl line 14.
BEGIN failed--compilation aborted at script/pan_pcap.pl line 14.


Below is the command I am running I am using the -gui switch as my program uses the Tk module. I am not sure if I am defining where to search for modules correctly. The documentation and examples are few and far between from my googling online.

pp -gui pan_pcap.pl -I=C:\strawberry\perl\lib:C:\strawberry\perl\site\lib:C:\strawberry\perl\vendor\lib -o pan_pcap.exe

Replies are listed 'Best First'.
Re: PAR::Packer issuing pp utility
by marto (Cardinal) on Jun 01, 2012 at 16:51 UTC
Re: PAR::Packer issuing pp utility
by Khen1950fx (Canon) on Jun 01, 2012 at 17:44 UTC
    Listing your strawberry libs isn't necessary. Note that -gui isn't correct. It should be two dashes.
    pp -o pan_pcap.exe --gui pan_pcap.pl

      Ok I am making some progress here. I now get the below error I checked the line in my script and it makes sense it fails on line 176 which is.

      $mech->get($url1);

      The below error is what I am seeing. It seems there is an ssl packaging issue with par::packer. Any help is greatly appreciated. The script does run without issue on its own.

      par-72773535353232\cache-774d2fb475c0548a2f1f82c08f9089c67351353c\bdd0b316.dll' for module Net::SSLeay: load_file:The specified module could not be found (LWP::Protocol::https not installed) at script/pan_pcap.pl line 176