Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    OM2
    OM2 is offline
    New Coder
    Join Date
    Apr 2012
    Posts
    59
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Need help creating an executable from a Perl script

    Can someone advise me on how best to create an executable from a Perl script?

    I've tried ActiveState:
    Positives: it's pretty good
    Negatives: it's costs nearly $300

    I've tried the one from IndigoStar: I got a few errors
    I don't need to be an expert in Perl, I've got one script that I need turning into an exe. So don't really want to spend several hours finding the solution.
    (Also costs $50 or somewhere close)

    Best option: CPan's pp - PAR Packager
    Except: there doesn't seem to be a dummy's get started guide!
    Just not sure where to start with this - there's instructions on how to execute Unix commands
    I've seen somewhere where you get a terminal and install - what's the about?? Do I HAVE to get a terminal emulator?

    EDIT: I currently have ActiveState Perl installed

    Any help would be great

    Thanks


    OM
    Last edited by OM2; 06-05-2012 at 12:25 AM.

  • #2
    Regular Coder Taro's Avatar
    Join Date
    Oct 2011
    Location
    Geraldton, Ontario
    Posts
    155
    Thanks
    1
    Thanked 1 Time in 1 Post
    Hello OM2,

    I'm not sure if you're looking at some free versions of Perl script compilers if that is what you are talking about, but here is one link. I don't know about the vendor reliability, only just to provide an example. Some compilers take a long time to compile the scripts into an active application, so beware of those. You can also seek assistance from other users who tried the products and can find their reports as well.
    Last edited by Taro; 06-07-2012 at 04:37 AM.
    Element ID

    Webs Support Helper

    Your friendly neighborhood Taroman.

  • #3
    OM2
    OM2 is offline
    New Coder
    Join Date
    Apr 2012
    Posts
    59
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Taro View Post
    Hello OM2,

    I'm not sure if you're looking at some free versions of Perl script compilers if that is what you are talking about, but here is one link. I don't know about the vendor reliability, only just to provide an example. Some compilers take a long time to compile the scripts into an active application, so beware of those. You can also seek assistance from other users who tried the products and can find their reports as well.
    thanks for the reply
    i read your reply on my mobile
    i started reading through the link
    spent about 5 min reading
    interesting conversation
    then i realised that the thread was 11 years old!
    stopped there
    the link of the project doesn't go anywhere either

    the main free one i can see is 'CPan's pp - PAR Packager'
    i've seen comments from others saying they use it
    the problem is i can't use it - don't know where to start
    + i can't find a forum that is answered regularly

    let me know if u have any other suggestions

    thanks

  • #4
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,874
    Thanks
    2
    Thanked 164 Times in 159 Posts
    I very rarely pack my scripts into standalone executables, but I have used perl2exe (IndigoStar) and the pp utility. From my experience pp is the better choice.

    IMO, the cpan doc for pp has a fairly complete/good set of examples and explanations. What part of the doc do you not understand?
    http://search.cpan.org/~rschupp/PAR-....013/lib/pp.pm

  • #5
    OM2
    OM2 is offline
    New Coder
    Join Date
    Apr 2012
    Posts
    59
    Thanks
    7
    Thanked 0 Times in 0 Posts
    @fishmonger, thanks for the reply

    yes, they seem to have plenty of examples

    - where do i install the package files to? are there any special things needed to do that?
    - i have a c:\perl directory - I install somewhere in there?
    - let's assume i overcome that part - what makes 'pp' become recognised in my DOS environment?
    - for that I assume there will be some sort of automated setting?

    i'm sure there is something ultra simple that i am missing!

    thanks in advance

  • #6
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,874
    Thanks
    2
    Thanked 164 Times in 159 Posts
    - where do i install the package files to? are there any special things needed to do that?
    - i have a c:\perl directory - I install somewhere in there?
    Since you are using Activestate Perl, you let its ppm utility worry about that. All you need to do is issue this command at the DOS prompt.
    ppm install PAR::Packer
    That will, as one of its dependencies, install pp.

    - let's assume i overcome that part - what makes 'pp' become recognised in my DOS environment?
    Your PATH environment. If you installed perl properly, it should have added perl's bin directories (C:\Perl\site\bin;C:\Perl\bin) to your path environment.

    When you install PAR::Packer, it places pp.bat (and a couple other par related files) in C:\Perl\site\bin. pp.bat is a wrapper to the pp.pm module which handles the "compiling".

  • #7
    OM2
    OM2 is offline
    New Coder
    Join Date
    Apr 2012
    Posts
    59
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by FishMonger View Post
    Since you are using Activestate Perl, you let its ppm utility worry about that. All you need to do is issue this command at the DOS prompt.

    That will, as one of its dependencies, install pp.


    Your PATH environment. If you installed perl properly, it should have added perl's bin directories (C:\Perl\site\bin;C:\Perl\bin) to your path environment.

    When you install PAR::Packer, it places pp.bat (and a couple other par related files) in C:\Perl\site\bin. pp.bat is a wrapper to the pp.pm module which handles the "compiling".
    a little wiser
    not quite there yet
    i checked path variable - they were definitely set
    when i ran dos though, they weren't there
    then i ran dos as admin and they where there

    now when i type ppm, the active state ppm is launched as a gui
    i'd already played around with this anyway

    it has a simple and clunky (un-intuitive) interface
    supposedly you are able to point at a package on the net or the local file system and install - i've had no luck here

    i tried running the command u gave - it just said PAR not found or something to that effect

    there's a readme file that says u can manually install
    u type 'perl Makefile.pl'
    i did this and got the following messages:

    Code:
    It looks like you don't have a C compiler on your PATH, so you will not be
    able to compile C or XS extension modules.  You can install GCC from the
    MinGW package using the Perl Package Manager by running:
    
        ppm install MinGW
    
    Fetching 'PAR-Packer-1.013-MSWin32-x86-multi-thread-5.14.2.par' from www.cpan.or
    g... Fetching failed:
    No compiler found, won't generate 'script/parl.exe'!
    Checking if your kit is complete...
    Looks good
    Warning: prerequisite Getopt::ArgvFile 1.07 not found.
    Warning: prerequisite Module::ScanDeps 1.05 not found.
    Warning: prerequisite PAR 1.005 not found.
    Warning: prerequisite PAR::Dist 0.22 not found.
    Warning: prerequisite Parse::Binary 0.04 not found.
    Warning: prerequisite Win32::Exe 0.17 not found.
    Writing Makefile for PAR::Packer
    Writing MYMETA.yml
    so, still scratching my head
    still not sure where i'm going wrong

    any ideas?
    thanks

  • #8
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,874
    Thanks
    2
    Thanked 164 Times in 159 Posts
    Did you install MinGW as the error message suggests? That module, IMO, is a necessity when running Activestate perl on Windows.

  • #9
    OM2
    OM2 is offline
    New Coder
    Join Date
    Apr 2012
    Posts
    59
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by FishMonger View Post
    Did you install MinGW as the error message suggests? That module, IMO, is a necessity when running Activestate perl on Windows.
    thanks
    made a lot more progress
    i've got rid of most errrors
    (i'd never thought of doing what u suggested!)
    i'm stuck on ScanDeps 1.05
    the version available through ActiveState PPM is 1.02

    i've installed ver 1.02

    when i do perl makefile.pl, one of the last few errors reported is that ver 1.02 is not compatible

    i've gone to cpan and have downloaded and installed both the latest version AND ver 1.05

    when i run perl makefile.pl, i still get the same error that it can't find ver 1.02

    i assumed therefore that u need to install a package through the active state ppm

    i can't figure out how to do this. i've spent another 30 min trying!
    the thing is the ppm seems very very slow to take actions - don't know why (maybe there's a good reason)

    any further ideas?

    thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •