For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > August 2005 > Compiling perl scripts









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Compiling perl scripts
Binish A R

2005-08-05, 9:59 pm

Does anyone knows how to compile perl scripts to executables?
I'm working on RH Linux and would like to know the details.
I know that I can use perlcc to do that ... but it isn't
compiling anything other than a simple 'hello world' program :(

Is there any other tools besides perlcc ??

Thanks in advance


/binish/


Errin M HMMA/IT Larsen

2005-08-05, 9:59 pm

Binish A R wrote:
> Does anyone knows how to compile perl scripts to executables? I'm
> working on RH Linux and would like to know the details. I know that I
> can use perlcc to do that ... but it isn't compiling anything other
> than a simple 'hello world' program :( =20
>=20
> Is there any other tools besides perlcc ??
>=20
> Thanks in advance
>=20
>=20
> /binish/


Wow.

I KNEW something was missing lately on this list: I haven't seen a good
"How do I compile my Perl" thread in quite some time! I look forward to
all the posts about why and why not to compile your Perl!! Just be glad
you didn't indicate that you wanted to compile for obfuscation reasons,
that really sets some people off!!

In the meantime, Binish, check out this earlier thread for some links:

http://groups.google.com/group/perl...thread/c5e3ef71
88def85e

--Errin Larsen
Errin M HMMA/IT Larsen

2005-08-05, 9:59 pm

Larsen, Errin M HMMA/IT wrote:
> Binish A R wrote:
>=20
> Wow.
>=20
> I KNEW something was missing lately on this list: I haven't seen a
> good "How do I compile my Perl" thread in quite some time! I look
> forward to all the posts about why and why not to compile your Perl!!
> Just be glad you didn't indicate that you wanted to compile for
> obfuscation reasons, that really sets some people off!! =20
>=20
> In the meantime, Binish, check out this earlier thread for some links:
>=20
>

http://groups.google.com/group/perl...thread/c5e3ef71
> 88def85e
>=20
> --Errin Larsen


OK ... That link didn't work AT ALL!!

I'll just cut and paste the discussion below:



1. De Joe May 29 2003, 6:48 pm show options
Newsgroups: perl.beginners
From: Jackie.De...@slbg.com (De Joe) - Find messages by this author
Date: Thu, 29 May 2003 18:30:49 -0500
Local: Thurs, May 29 2003 6:30 pm
Subject: Can I compile perl so I can run a perl script without having
perl installed?
Reply to Author | Forward | Print | Individual Message | Show original |
Report Abuse

Can I compile perl so I can run a perl script without having perl
installed?

Thanks,
Jackie
=20
=09
2. Jenda Krynicky May 30 2003, 8:00 am show options
Newsgroups: perl.beginners
From: J...@Krynicky.cz (Jenda Krynicky) - Find messages by this author
Date: Fri, 30 May 2003 14:56:31 +0200
Local: Fri, May 30 2003 7:56 am
Subject: Re: Can I compile perl so I can run a perl script without
having perl installed?
Reply to Author | Forward | Print | Individual Message | Show original |
Report Abuse

From: "De Joe, Jackie" <Jackie.De...@slbg.com>

> Can I compile perl so I can run a perl script without having perl
> installed?


Yes. And you may even choose which tool to use:

PAR - free
http://search.cpan.org/search? mode=3Dall&query=3DPAR

PerlApp - part of Perl Development Kit
http://www.activestate.com/Pro ducts/Perl_Dev_Kit/

Perl2Exe
www.perl2exe.com

HTH, Jenda
=3D=3D=3D=3D=3D J...@Krynicky.cz =3D=3D=3D http://Jenda.Krynicky.cz =
=3D=3D=3D=3D=3D
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery=20
Binish A R

2005-08-05, 9:59 pm

Larsen, Errin M HMMA/IT wrote:

>Larsen, Errin M HMMA/IT wrote:
>
>
>http://groups.google.com/group/perl...thread/c5e3ef71
>
>
>
>OK ... That link didn't work AT ALL!!
>
>I'll just cut and paste the discussion below:
>
>
>
>1. De Joe May 29 2003, 6:48 pm show options
>Newsgroups: perl.beginners
>From: Jackie.De...@slbg.com (De Joe) - Find messages by this author
>Date: Thu, 29 May 2003 18:30:49 -0500
>Local: Thurs, May 29 2003 6:30 pm
>Subject: Can I compile perl so I can run a perl script without having
>perl installed?
>Reply to Author | Forward | Print | Individual Message | Show original |
>Report Abuse
>
>Can I compile perl so I can run a perl script without having perl
>installed?
>
>Thanks,
>Jackie
>
>
>2. Jenda Krynicky May 30 2003, 8:00 am show options
>Newsgroups: perl.beginners
>From: J...@Krynicky.cz (Jenda Krynicky) - Find messages by this author
>Date: Fri, 30 May 2003 14:56:31 +0200
>Local: Fri, May 30 2003 7:56 am
>Subject: Re: Can I compile perl so I can run a perl script without
>having perl installed?
>Reply to Author | Forward | Print | Individual Message | Show original |
>Report Abuse
>
>From: "De Joe, Jackie" <Jackie.De...@slbg.com>
>
>
>
>
>Yes. And you may even choose which tool to use:
>
>PAR - free
> http://search.cpan.org/search? mode=all&query=PAR
>
>PerlApp - part of Perl Development Kit
> http://www.activestate.com/Pro ducts/Perl_Dev_Kit/
>
>Perl2Exe
> www.perl2exe.com
>
>HTH, Jenda
>===== J...@Krynicky.cz === http://Jenda.Krynicky.cz =====
>When it comes to wine, women and song, wizards are allowed
>to get drunk and croon as much as they like.
> -- Terry Pratchett in Sourcery
>
>
>

the link is
http://groups.google.com/group/perl...5e3ef7188def85e

I've just installed it and is working really great.
Its just like perlcc when considering the size of binary created ( always ~4M, with stripping it'll be ~3M though )
But is better than perlcc in the sense that it will always compile the script to binary :)
Thatz exactly what I needed :D


Thankz Errin and all ...

/binish/




Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com