making perl script an executable program.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zcabeli
    New Member
    • Jan 2008
    • 51

    making perl script an executable program.

    Hello,

    i've installed some modules in my unix machine which i'm using in my scripts. however, i'd like to make those scripts executable from any machine, with minimal requirements of perl installed. is it possible ?

    thanks,
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    You can look into something like perl2exe, but I don't think anyone here has much experience in using it or any other modules to do so.

    Regards,

    Jeff

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #3
      I think when you make a perl program into an executable with perl2exe it includes perl in the executable. Maybe look into perlcc but I have no experience with it myself. Make sure to read the perlcc documentation carefully.

      Comment

      • eWish
        Recognized Expert Contributor
        • Jul 2007
        • 973

        #4
        How about PAR or PAR::Packer?

        --Kevin

        Comment

        • zcabeli
          New Member
          • Jan 2008
          • 51

          #5
          i'll definetly give it a shot, i'll let you know if i found someting useful,

          thanks

          Comment

          • cnsabar
            New Member
            • Dec 2007
            • 40

            #6
            U can try another way also without installing several modules..

            Just make a copy of required modules in one server system.

            Call that module exists path using

            [code="perl"]
            use lib 'module exists path';
            [/code]

            Comment

            • numberwhun
              Recognized Expert Moderator Specialist
              • May 2007
              • 3467

              #7
              Originally posted by cnsabar
              U can try another way also without installing several modules..

              Just make a copy of required modules in one server system.

              Call that module exists path using

              [code="perl"]
              use lib 'module exists path';
              [/code]
              Actually, I don't know if that will work. Referencing Perl modules on another machine could run into things like permissions issues and the like. Plus, I don't know if Perl would like it, but I could be wrong.

              Regards,

              Jeff

              Comment

              Working...