Zhi-Jun's Blog

April 8, 2010

Install PP(PAR) package in active perl

Filed under: linux,perl,win32 — Jack @ 13:17
Tags:

PP is a great tool for package source code of perl to executable file.

It is easy to use and faster than perlcc.

At the same time, PP can also be used in win32, active perl.

But install may need some efforts.

Here I list some issues which encountered during install and use pp in win 32.

To install PP, there are some packages such as compress::zlib … should be installed firstly.

And also PAR package for win also needed.

Win32 par package can be found in this site or that.

After every depended package be installed correctly, it is ready for run pp.

Because there are no pp script in windows, so just create a pp.pl file in perl\bin\

Such as:

#!/usr/bin/env perl

#

eval ‘exec perl -S $0 ${1+”$@”}’

if 0;

use strict;

use warnings;

use pp;

pp->go();

To create an executable package in win32, just run pp script like below:

pp.pl test.pl -f Bleach -o test.exe -M Spreadsheet::WriteExcel::Big

You may encounter such error messages when run PP

the procedure entry point perl_sv_2iv_flags could not be located in the dynamic link library perl58.dll

the procedure entry point perl_pad_push could not be located in the dynamic link library perl58.dll

If the error happens, please run perl –v to check the version of current perl.

This is perl, v5.8.8 built for MSWin32-x86-multi-thread

(with 18 registered patches, see perl -V for more detail)

Copyright 1987-2007, Larry Wall

Binary build 822 [280952] provided by ActiveState http://www.ActiveState.com

Built Jul 31 2007 19:34:48

Please check your par package to see if you select correct version of par, the version should be aligned with perl.

Then, you can enjoy pp functions, J

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.