The I am using is PAR Packer.
1. Downloadmodule PAR Packer:
http://search.cpan.org/~rschupp/PAR-Packer-1.024/lib/PAR/Packer.pm
2. Installpar Packer:
2.1 unzipthe *.tar
2.2 Go tothe directory and run "Perl makefile,pl", if you is using Active Perl, you mayget some error on you Don ' t has GCC compiler, need to install MIGGW asmentioned in Step3
3. downloadand Install MinGW: from website:http://www.mingw.org/
The version I used Is:http://tdm-gcc.tdragon.net/download
3.1 Payattention If you already add the value path ' C:\MinGW\64\bin ' in your systemvariables
3.2 Run gcc–v to see if it issuccessfully installed:
C:\rebecca\script\perl>gcc-v
Using built-in specs.
collect_gcc=gcc
collect_lto_wrapper=c:/mingw/64/bin/. /libexec/gcc/x86_64-w64-mingw32/4.9.2/
Target:x86_64-w64-mingw32
Configured with:.. /.. /.. /src/gcc-4.9.2/configure--build=x86_64-w64-mingw32
Thread Model:posix
GCC version 4.9.2 (tdm64-1)
4. Run Perl makefile.pl, you may get the followingerrors:
c:\users\rebecca\desktop\par-packer-1.024>perlmakefile.pl
It looks like you don ' t has either nmake.exe Ordmake.exe on your PATH,
Able to execute the commands froma Makefile. You can
Install Dmake.exe with the Perl package Manager byrunning:
PPM Install Dmake
You need to install Dmake assuggested, you can run "ppm install Dmake", and you may get the followingerrors:
C:\REBECCA\SCRIPT\PERL>PPM Install Dmake
Downloading ActiveState package Repositorypacklist...redirect
Downloading ActiveState package Repository packlist...failed401 Unauthorized
Syncing site PPM database with. Packlists...done
Syncing perl PPM database with. Packlists...done
Downloading Dmake-4.11.20080107...redirect
Downloading dmake-4.11.20080107...failed 401 Unauthorized
PPM Install failed:401 unauthorized
itis because the Active Perl you be using now isn't business version, ITDOESN ' t support to install automatically onl Ine. You need to install itmanually by following STEP5
5. installdmake: http://search.cpan.org/dist/dmake/
According to the instruction in README. Txt:
So, to-install it, just copy Dmake.exe and the startupsubdirectory to some location on your path.
6. Checkif you already has dmake successfully installed:
C:\rebecca\script\perl>dmake-v
Dmake-version 4.12.2.2 (Windows/ms Visual C + +)
Copyright (c) 1990,..., 1997 by WTI Corp.
Default Configuration:
Maxlinelength: = 32766
Maxprocesslimit: = 64
. IMPORT. Ignore:dmakeroot
. MAKEFILES:makefile.mk Makefile
. SOURCE:. Null
Dmakeroot *=$ (ABSMAKECMD:D) startup
Makestartup: =$ (dmakeroot) \startup.mk
Please read the NEWS file for the latest release notes.
7. Go Topar Packer Directory:
Perl makefile.pl
Dmake
Dmake Install
8. Generatethe EXE:
C:\rebecca\script\perl>pp-o Hello.exe hello.pl
9. Done
How to generate EXE for your PERL script?