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

Finally I decided to make a standalone distribution, which made me found out there are much more things need to be took care precisely

First I install the PAR and PAR::Packer module via ppm. When applied pp command to target file, it gives lots of error messages, looks like more libraries and .pm files are needed.

Second I tried the perlcc tool. It gives the error message that perlcc can't spawn the compiler.

I only used perl for data manipulation a lot. I don't think this perl file structure is perfectly built in my PC. Sometime, modules install via ppm or cpan differently. And force installation used a lot.

Any suggestion or tips could help me solve the problem are appreciated

Replies are listed 'Best First'.
Re: Can't build standalone with pp
by karavay (Beadle) on Sep 29, 2007 at 02:04 UTC
    Please provide more information: e.g post your errors - I've recently installed and used PAR:Packer - no problems whatsoever.

    use GUI ppm (provided with perl 5.8.8) and install PAR::Packer 0.976 it should detect and install all of the dependencies automatically. alternative to par : http://www.indigostar.com/perl2exe.htm

      Guys, here is the error messages of the pp

      -----------------------------------------------------------------

      Microsoft Windows XP Version 5.1.2600

      (C) Copyright 1985-2001 Microsoft Corp.

      C:\Documents and Settings\zli034\Desktop\Analysis>pp -o hello.exe hello.pl

      Set up gcc environment - 3.2 20020927 (prerelease)

      Perl lib version (v5.8.8) doesn't match executable version (v5.8.6) at C:/Perl/lib/Config.pm line 46.

      Compilation failed in require at C:/Perl/lib/Errno.pm line 8.

      BEGIN failed--compilation aborted at C:/Perl/lib/Errno.pm line 8.

      Compilation failed in require at C:/Perl/lib/File/Temp.pm line 144.

      BEGIN failed--compilation aborted at C:/Perl/lib/File/Temp.pm line 144.

      Compilation failed in require at C:/Perl/lib/Archive/Zip.pm line 26.

      BEGIN failed--compilation aborted at C:/Perl/lib/Archive/Zip.pm line 26.

      Compilation failed in require at -e line 406.

      C:\Perl\site\bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' to file 'parlOI58Zaz.exe' at C:/Perl/site/lib/PAR/Packer.pm line 1149, <DATA> lin e 1.

      C:\Documents and Settings\zli034\Desktop\Analysis>

      What about this error message? after I installed the Errno module

      Errno architecture (MSWin32-x86-multi-thread-4.0) does not match executable architecture (MSWin32-x86-multi-thread-5.0) at C:/Perl/site/lib/Errno.pm line 11.

      Read about some posts of this doesn't much architecture problem by google searching. It is probably caused by the previous perl version uninstalled poorly. I'm thinking to rebuild the whole Windows system. I can't think about any way other than this to clean all the perl file system in my PC

        I was also seeing this: Errno architecture (MSWin32-x86-multi-thread-4.0) does not match executable architecture (MSWin32-x86-multi-thread-5.0) at C:/Perl/site/lib/Errno.pm line 11. I first tried to upgrade any possible modules with ppm. Then - I uninstalled ActiveState Perl and downloaded their latest release - reinstalled some modules I use and ran the program again and it worked. Thanks - Mark