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

Having problems getting pp to work with strawberry perl, v5.10.0.4. Installed mods:
Parse::Binary Win32::Exe Module::ScanDeps PAR::Dist PAR
Question am I missing one? Trying to complie a simple perl script, with just hello world, getting the following:
C:\CAM>pp -o cam.exe cam_manual.pl Can't locate Config_heavy.pl in @INC (@INC contains: CODE(0xa9ae64) .) + at C:/strawberry/perl/lib/Config.pm line 66. Compilation failed in require at C:/strawberry/perl/lib/IO/Handle.pm l +ine 263. BEGIN failed--compilation aborted at C:/strawberry/perl/lib/IO/Handle. +pm line 263. Compilation failed in require at C:/strawberry/perl/lib/IO/Seekable.pm + line 101. BEGIN failed--compilation aborted at C:/strawberry/perl/lib/IO/Seekabl +e.pm line101. Compilation failed in require at C:/strawberry/perl/lib/IO/File.pm lin +e 133. BEGIN failed--compilation aborted at C:/strawberry/perl/lib/IO/File.pm + line 133. Compilation failed in require at -e line 307.

Replies are listed 'Best First'.
Re: Strawberry perl and PAR
by afoken (Chancellor) on Mar 25, 2009 at 08:17 UTC

    This ...

    Can't locate Config_heavy.pl in @INC (@INC contains: CODE(0xa9ae64) .)

    ... is really strange. The code ref should not be there, and the standard include directories are missing. Perhaps your Perl installation is broken?

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      Install of perl goes fine each time no errors. I get this with vanilla and strawberry perl
Re: Strawberry perl and PAR
by marto (Cardinal) on Mar 25, 2009 at 15:28 UTC

    Which version of PAR are you using? Sine version 0.97 (May 2008, nine releases ago) pp has been part of PAR::Packer.

    I just tested this on a Win2k3 box with Strawberry Perl v.5.10.0, installed PAR::Packer via cpan, and have successfully created an executable from a 'hello world' script without any error messages.

    Hope this helps,

    Martin

      Thank you PAR::Packer worked, so here's the real question. I have a script I need to make into an exe. Ive compiled it like so: pp -o exename perlscript exe runs fine on any machine that has perl installed, but I need to run it on hosts without perl. When running from a host that doesnt have perl i get the following:
      C:\Temp>cam_reset.exe Server returned error: 501 Protocol scheme 'https' is not supported (C +rypt::SSLe ay not installed)
      Script makes a ssl connection to a device and performs a post. Script is using the following: use HTTP::Request::Common qw(POST GET); use HTTP::Headers; use LWP::UserAgent; use MIME::Base64; SSLleay and openssl were installed on the host the script was complied on. How do I get past this error?
        Tried this as well, same result: pp -M Net::HTTPS -M LWP -M LWP::Protocol::https -o exe script
Re: Strawberry perl and PAR
by zentara (Cardinal) on Mar 25, 2009 at 14:31 UTC