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

I have Fedora Linux system and perl V5.8.6. I have few perl codes (some of them have Tk Module also) and i would like to compile it as stand alone binaries. i went thru lot of links and i tried to use 'perlcc xxx.pl'. it generated the binary a.out with little warnings as below.

pccw8XqB.c:151952: warning: this decimal constant is unsigned only in +ISO C90 [genesis@cimnet-1 ~]$ more License_Indicator.pl

if i run the file using './a.out' it is showing "segmentation Fault".

is this the correct method to compile a perl script ? i need this to be compiled because i do not want end user to see my source. so i need this to be compiled.

pls advise me on how to compile this on Linux

Replies are listed 'Best First'.
Re: Compiling perl script in Fedora Linux-4
by Corion (Patriarch) on Jul 24, 2006 at 08:08 UTC

      perlcc has never worked and is dead.

      Actually, not quite true! I worked at a place a few years ago where perlcc was used in order to boost performance (significantly, I might add) for CGI scripts. I remember being stuck on perl 5.003 because perlcc was broken in 5.004, since it was truly never really supported. But it did (mostly) work in 5.003... no argument with "dead" though, of course. :)

      --
      edan

Re: Compiling perl script in Fedora Linux-4
by gellyfish (Monsignor) on Jul 24, 2006 at 08:06 UTC

    perlcc is probably not the best way to create a 'standalone binary' - you probably want to look at PAR

    /J\