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

Hi all, I'm trying to create an executable from my perl script to run on another windows machine. I have no problems creating the executable, but when I bring the .exe file to the target machine that is not running perl I receive the "Can't locate XSLoader.pm in @INC (@INC contains: CODE(0x86a024 .) at -e line 373." error message. The following is the command I used to create my .exe: "pp -o test.exe C:\Perl\hello.pl"

In an attempt to fix this problem I have tried adding this module to the .exe file during at it's creation time.

The .exe file is created on a Windows XP Pro SP2 machine using Perl v5.8.8.822 from ActiveState. Also I am using PAR version 0.980.

Thanks in advance for your assistance.

Replies are listed 'Best First'.
Re: Perl Executable
by Anonymous Monk on Jul 28, 2008 at 14:41 UTC
    This used to be a bug with old PAR (0.66?), so make sure you're using the latest. Also, turn debuging on for clues.
      Not sure how turning debugging on would help. My perl script and it's associated .exe file will work just fine on my development machine where perl is actually installed.
        Quick question, which version of PAR::Packer are you running?

        Martin
        PAR_GLOBAL_DEBUG