On 16 May, 16:45, [EMAIL PROTECTED] (Malcolm Nooning) wrote:
> The sitehttp://search.cpan.org/~smueller/PAR-0.973/
> has the latest PAR.
>
> The prepackaged Windows binary for PAR::Packer is 
> athttp://www.perl.com/CPAN/authors/id/S/SM/SMUELLER/PAR-Packer-0.975-MS...
>
> I just noticed that "par" is one of the Perl Power Tools comands.  The
> CPAN link for par leads to the ppt download.  How unfortunate.
>
> I am going to take a guess here and suggest that there is something that
> is not being packaged into your .exe file.  I am going to gear my
> suggestions premised up on that because that is the only reason I can
> think of for this behavior.  I presume that "pp -o hello.exe hello.pl"
> will work when hello.pl is a simple print statement.
>
> For debugging, do not use  -g (gui) on the command line so that the
> print (debugging) statements will show on the command line.
>
> Given that debug print statements are sprinkled about, comment out the
> encryption and any other areas that are the most suspect.  Then if the
> new .exe runs and prints the debug statements, uncomment a suspect area,
> create a new .exe and try again.
>
> Any "use foo" line invoked from package main will result in foo.pm being
> packed.  Any trail of "use" packages will likewise be picked up.  If
> there are any packages missing it will probably not be one of the ones
> from a "use foo" type of statement.  If there is anything you suspect,
> try some lines like
>
> pp -o main.exe -M foo -M bar -M whatever main.pl
>
> to explicitly get the module packaged.
>
> Is it possible that you have modules coming from a separate lib known
> only when the .pl file is run from the command line?  If so, try  --lib
> /path/to/mylib on the command line.  pp will not warn you when it cannot
> find modules.
>
> If your script invokes a .pl file that has a "use bar" line I do not
> think bar.pm will be packaged.  That secondary .pl file also will not
> get packaged.  This is also true for things invoked in a "system(..,
> "some.pl", ..)" command.
>
> Any text or other files to be packed must be explicitly requested using
> the -a and/or -A flags on the command line.
>
> Good luck

Hi,
I did post a reply yesterday afternoon but it didnt show up. I've
upgraded my copy of Perl to 5.8.8.820 and re-installed PAR using the
binary you quote. No change. Version are as below. I've included a run
through from the command line for both the packed version and the
native version of the program. I'm convinced there is no problem with
the PAR install in that packing completes etc. I've used PAR for many
other programs without any issue.

Versions:
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 50 registered patches, see perl -V for more detail)

Copyright 1987-2006, Larry Wall

Binary build 820 [274739] provided by ActiveState http://www.ActiveState.com
Built Jan 23 2007 15:57:46

┌──────────────┬──────────┬─────────────────────────────────────────┬──────┐
│ name         │ version  │ abstract                                │
area │
├──────────────┼──────────┼─────────────────────────────────────────┼──────┤
│ HTML-Parser  │ 3.56     │ Parsing of HTML documents               │
perl │
│ Math-Pari    │ 2.010603 │                                         │
site │
│ PAR          │ 0.90     │ Perl Archive Tookit                     │
site │
│ PAR-Dist     │ 0.22     │ Create and manipulate PAR distributions │
site │
│ PAR-Packer   │ 0.973    │ PAR Packager                            │
site │
│ Parse-Binary │ 0.10     │                                         │
site │
│ XML-Parser   │ 2.34-r1  │ Parsing of XML documents                │
perl │
└──────────────┴──────────┴─────────────────────────────────────────┴──────┘
┌───────────────────┬─────────┬──────────┬──────┐
│ name              │ version │ abstract │ area │
├───────────────────┼─────────┼──────────┼──────┤
│ Crypt-Blowfish    │ 2.10    │          │ site │
│ Crypt-CAST5_PP    │ 1.03    │          │ site │
│ Crypt-CBC         │ 2.19    │          │ site │
│ Crypt-DES         │ 2.05    │          │ site │
│ Crypt-DES_EDE3    │ 0.01    │          │ site │
│ Crypt-DES_PP      │ 1.00    │          │ site │
│ Crypt-DSA         │ 0.14    │          │ site │
│ Crypt-IDEA        │ 1.08    │          │ site │
│ Crypt-OpenPGP     │ 1.03    │          │ site │
│ Crypt-Primes      │ 0.50    │          │ site │
│ Crypt-RIPEMD160   │ 0.04    │          │ site │
│ Crypt-RSA         │ 1.57    │          │ site │
│ Crypt-Random      │ 1.25    │          │ site │
│ Crypt-Rijndael    │ 0.05    │          │ site │
│ Crypt-Twofish     │ 2.12    │          │ site │
│ Tie-EncryptedHash │ 1.8     │          │ site │
└───────────────────┴─────────┴──────────┴──────┘

Direct copy of command line:
C:\Documents and Settings\misoldgit\My Documents\perl\test_gpg>pp -o
op_encrypt.exe op_encrypt.pl

C:\Documents and Settings\misoldgit\My Documents\perl
\test_gpg>op_encrypt.exe
$pgp created OK
pubring.gpg exists OK

Input file to be encrypted: readme.doc
There was a problem encrypting the file
Error: No known recipients for encryption


C:\Documents and Settings\misoldgit\My Documents\perl
\test_gpg>op_encrypt.pl
$pgp created OK
pubring.gpg exists OK

Input file to be encrypted: readme.doc
File encrypted OK
Encrypted data written to file.

Reply via email to