I have to create an exe from a Perl script. I installed
ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi
How do I install pp?
I have to create an exe from a Perl script. I installed
ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi
How do I install pp?
Until the issue with 1.010
is fixed, do the following:
From the "Other releases" drop down list, select PAR-Packer-1.009
and download it
Decompress the archive, preserving directory structure
Run perl Makefile.PL
Install all the missing prerequisites by hand using ppm
. E.g., ppm install Module::ScanDeps
etc
Install MingW: ppm install MingW
dmake
, then dmake test
, then dmake install
Later, you can remove PAR::Packer
from the site area using the ppm
GUI and install the fixed version.
I know this is a relatively old question, but for the sake of others, here is a solution that worked for me using pp (Par Packager):
get pp
install pp
c:\strawberry\perl\site\bin\pp.bat -o myScript.exe myScript.pl
Note: You can use the -d command line switch in order to reduce the size of the executable. This will not include perl interpreter code inside the executable, reducing the size of the executable, however you will need to provide perl5x.dll in the same directory as your executable, or include it on the PATH environment variable.
Until the issue with 1.010
is fixed, do the following:
From the "Other releases" drop down list, select PAR-Packer-1.009
and download it
Decompress the archive, preserving directory structure
Run perl Makefile.PL
Install all the missing prerequisites by hand using ppm
. E.g., ppm install Module::ScanDeps
etc
Install MingW: ppm install MingW
dmake
, then dmake test
, then dmake install
Later, you can remove PAR::Packer
from the site area using the ppm
GUI and install the fixed version.
This is a Perl module called PAR::Packer, so it can be installed as any Perl module with CPAN. Unfortunately, you're using ActivePerl which isn't quite compatible with CPAN. Instead, you can see if use ActiveState's Perl Package Manager to install this module.
If the module isn't available via the Perl Package Manger, you can try installing with the CPAN command line utility. Open up a Console Window (Start->Accessories->Command Prompt) and type in cpan
and press <ENTER>
. Newer versions of ActiveState should automatically install the required compilers, etc. when you first start to use CPAN.
I prefer Strawberry Perl for Windows because it's more compatible with CPAN. However, ActivePerl has a lot of the Win32 modules already installed. Plus, it comes with the Perl Package Manager which is nice.
WARNING: ActiveState installs a lot of these Perl scripts not in C:\Perl\bin
, but in C:\Perl\Site\bin
which means you have to make sure that directory is in your path too.
As of v1.010, the software cannot be automatically packaged, see the report at Trouchelle's repo.
Install CPAN using PPM, then continue as per the Stack Overflow Perl FAQ: What's the easiest way to install a missing Perl module?
In addition to the above answers, You can use cpan to install the PAR::Packer. From your windows command prompt use the command: cpan install PAR::Packer. Note: I have Strawberry perl installed. cpan installs the modules and the dependencies as well.
© 2022 - 2024 — McMap. All rights reserved.