prad_intel has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

I am trying to convert my .pl to an exe.

I downloaded perl2exe from indigostar but its giving an error indicating unsupported version.

I came to know that there is a way to convert .pl to exe from perlcc.bat

Is it true ?
If (so){ print "how do I do it?" ;} else{ print "Still how do I do it";}

always prad

Replies are listed 'Best First'.
Re: Perl2exe conversion problem
by sasikumar (Monk) on Feb 08, 2005 at 08:52 UTC
    Hi

    Try this
    C:\>ppm ppm>install PAR ppm>exit C:\> pp my.pl C:\>a.exe


    Thanks
    SasiKumar
      Except that the version of PAR on ActiveState's PPM repository is ancient. It looks like the automated build is snafued on http://ppm.activestate.com, because Makefile.PL is needing some manual intervention.

      You are better off building the latest and greatest PAR from CPAN (if you have MVC), which will build a .exe that can run on a PC without perl installed (the ancient one doesn't, the .exe needs a perl5 dll).

      I notice that PodMaster has a PPM distro of PAR 0.85 for ActivePerl 5.8, see: http://crazyinsomniac.perlmonk.org/perl/ppm/5.8/

      --
      I'm Not Just Another Perl Hacker

        Even better would be to search for it on http://kobesearch.cpan.org/

        Then you will see that the Repository of bribes.org has version v.087.

Re: Perl2exe conversion problem
by perlsen (Chaplain) on Feb 08, 2005 at 08:53 UTC

    Hi,

    Do u know about perlapp.exe it is avilable on www.activestate.com.
    it is a written program can covert the pl file to exe file.
    and it is also avilable on perl development kit.

    pls download it and try for your exe making purpose.

Re: Perl2exe conversion problem
by martymart (Deacon) on Feb 08, 2005 at 11:59 UTC
    Hi Prad,

    I believe there are different versions of perl2exe, for different versions of perl.
    To find which version of perl you are using, type:
    perl -v
    Then go to:
    http://www.indigostar.com/perl2exe.htm#Download
    And download the appropriate version for the perl you have installed.

    But you have to pay to register this software, so it may be worthwhile to go for the PAR option.

    Hope this helps,
    Martymart