Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pp problem with Strawberry Perl 5.10

36 views
Skip to first unread message

Kang

unread,
Feb 13, 2008, 8:33:12 PM2/13/08
to p...@perl.org
Hello.

I'm using Strawberry Perl 5.10 for win32.
but packed binary with pp on it raises "can't find perl510.dll" error.
There is no such problem in Strawberry Perl 5.8.

Thank you in advance

Roderich Schupp

unread,
Feb 14, 2008, 8:53:19 AM2/14/08
to Kang, p...@perl.org
On Thu, Feb 14, 2008 at 2:33 AM, Kang <chah...@gmail.com> wrote:
> I'm using Strawberry Perl 5.10 for win32.
> but packed binary with pp on it raises "can't find perl510.dll" error.
> There is no such problem in Strawberry Perl 5.8.

Please give some more information what you did and what doesn't work.

Cheers, Roderich

Roderich Schupp

unread,
Feb 15, 2008, 12:15:18 PM2/15/08
to Kang, p...@perl.org
On Fri, Feb 15, 2008 at 12:55 AM, Kang <chah...@gmail.com> wrote:
> After making simple script, and packing with 'pp -o script.exe script.pl'
> command.
> Execute packed binary in the other computer which don't have perl or after
> removing environment variable installed by strawberry perl
> if you execute it on the same machine, you can not see the error because
> perl510.dll is already in PATH environment variable.

I just tried this:
- installed Strawberry Perl 5.10 from scratch
- installed libwin32, PAR, PAR::Packer (and its prerequisites) from CPAN
- pp -o hello.exe -e "print qq[hullo world\n]"
- invoked hello.exe from another console window with everything mentioning
strawberries removed from environment: works for me

Questions:

- Did you re-install PAR::Packer (from scratch) after you switched
from Strawberry 5.8 to 5.10?

- Check your C:\Documents and Settings\YourUser\Local Settings\Temp\par-YourUser
(or whatever it's called on your machine): remove all its contents, then run
your packed executable; that should result in a directory called
"cache-SOMETHING"
beeing created; this directory should contain perl510.dll

Cheers, Roderich

Roderich Schupp

unread,
Feb 18, 2008, 4:29:52 AM2/18/08
to Kang, p...@perl.org
On Feb 16, 2008 2:20 AM, Kang <chah...@gmail.com> wrote:
> I tried to reinstall PAR::Packer 0.977 from scratch again.
>
> The followings are test message during installation.
> ...
> C:\strawberry\perl\bin\perl.exe encode_append.pl static.exe
> ..\blib\lib\PAR\StrippedPARL\Static.pm
> Output file '..\blib\lib\PAR\StrippedPARL\Static.pm' does not have an empty
> __DATA__ section. Not ap
> pending encoded data from 'static.exe'. This is NOT a fatal error! at
> encode_append.pl line 26.

This is a known bug in PAR::Packer's build process (already fixed in SVN):
it refuses to overwrite certain stuff from a previous build.
Please repeat the build by hand:

- cd to C:\strawberry\cpan\build\PAR-Packer-0.977-XXXXX
- do "dmake clean" to blow away all old stuff (esp. make sure blib has
been removed)
- perl Makefile.PL
- dmake
- dmake test

If the last command fails, please post the output from "perl
makefile.PL" onward.

Cheers, Roderich

0 new messages