in reply to Re: Strawberry perl and PAR
in thread Strawberry perl and PAR

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?

Replies are listed 'Best First'.
Re^3: Strawberry perl and PAR
by perlnewb123 (Sexton) on Mar 25, 2009 at 21:42 UTC
    Tried this as well, same result: pp -M Net::HTTPS -M LWP -M LWP::Protocol::https -o exe script
        Ok, so if I include use Crypt::SSLeay, in the script before building the exe, it works fine on the host with perl and all the modules installed, but on a host without perl, I now get this message below. Before I was including the dlls with the exe for each machine that would use the exe, but following your link I can include the dlls with the exe thank you.
        C:\Temp>cam_reset.exe addmac 12345 Can't load 'C:\DOCUME~1\user\LOCALS~1\Temp\par-user\cache-e9e273248eb8 +5950f89b80 530b42a0c4aab23932\b58c32ab.dll' for module Crypt::SSLeay: load_file:T +his applic ation has failed to start because the application configuration is inc +orrect. Re installing the application may fix this problem at C:/strawberry/perl/ +lib/DynaLo ader.pm line 203. at C:/strawberry/perl/site/lib/PAR/Heavy.pm line 82 Compilation failed in require at script/cam_reset.pl line 7. BEGIN failed--compilation aborted at script/cam_reset.pl line 7.