How to generate exe for your PERL script ?, Generateperl

Source: Internet
Author: User

How to generate exe for your PERL script ?, Generateperl

The way I am using is PAR Packer.

 

1. Downloadmodule PAR Packer:

Http://search.cpan.org /~ Rschupp/pars-packer-1.024/lib/PAR/Packer. pm

2. InstallPAR Packer:

2.1Unzipthe *. tar

2.2Go tothe directory and run "perl Makefile, pl", if you are using active perl, you mayget some error about you don't have GCC compiler, you need to install migGW asmentioned in step 3

3.Downloadand Install MinGW:From website: http://www.mingw.org/

The version I used is: http://tdm-gcc.tdragon.net/download

3.1Payattention if you already add the value path "C: \ MinGW \ 64 \ bin" in your systemVariables

3.2Run 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 have either nmake.exe ordmake.exe on your PATH,

So you will not be 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", but 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 are using now is not business version, itdoesn't support to install automatically online. 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 have 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.