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

Hi,
I used the pp utility to compile my Perl prgms. Some of them use the Crypt::SSLeay for authentication of web sites and some other modules as well like Spreadsheet::WriteExcel etc. Problem I encountered is when I try to run the exe on another machine which doesn't have Perl installed. I get various errors like SSLeay32.dll not found etc. Even when I copy the files prompted to the machine, the prgm still terminates at some point. Should Perl be installed in other machines for me to run the exe or is there a way to get around this prob?
Cheers

Replies are listed 'Best First'.
Re: Compiling Perl
by erroneousBollock (Curate) on Oct 30, 2007 at 04:42 UTC
    Should Perl be installed in other machines for me to run the exe ... ?
    No, that's not necessary.

    I get various errors like SSLeay32.dll not found etc.
    I don't know about your 'various' errors, but you can fix the missing DLL errors by having pp include the DLLs into the packed executable.

    The PAR-Packer documentation says to add the -l /path/to/file.dll option in order to pack a shared library.

    If you have a DLL that loads other DLLs, use something like Dependency Walker to figure them out, so that they can also be packed.

    Update: If you're going to be releasing the executable outside of your home/workplace, please make sure you have permission to distribute the DLLs in question (read the license accompanying the DLL/module).

    -David

Re: Compiling Perl
by Gangabass (Vicar) on Oct 30, 2007 at 09:31 UTC