puneet.keswani has asked for the wisdom of the Perl Monks concerning the following question:


I have a doubt regarding one of the utilities in perl - "perlcc"

5 years ago I had written a perl script and had used "perlcc" to create its binary equivalent, now I have to make some changes in the script and again want its binary equivalent. Now the perl version has changed to v5.8.8, earlier being v5.8.0. After I try to execute the below mentioned command it gives me the following error :

mccpbtopdev% /usr/local/bin/perlcc -o rpt_template2

Segmentation Fault - core dumped

/usr/local/bin/perlcc: did not compile, which can't happen:

Starting compile Walking tree Exporter saved (it is in Symbol's @ISA) IO::Handle saved (it is in IO::File's @ISA) IO::Seekable saved (it is in IO::File's @ISA) OLE::Storage_Lite::PPS saved (it is in OLE::Storage_Lite::PPS::Dir's @ISA) Spreadsheet::WriteExcel::Workbook saved (it is in Spreadsheet::WriteExcel's @ISA) Prescan Saving methods Basically its giving Segmentation Fault with a core dump file. Please help..

Replies are listed 'Best First'.
Re: perlcc not working
by marto (Archbishop) on Aug 08, 2012 at 10:15 UTC
      Hi, Is there any specific reason on why perlcc is not working after the perl version was enhanced to v5.8.0, also can you please tell me that what all things need to be installed for "pp" to work fine.

        If you read the links I gave you you'll find the quote:

        "The whole codegen suite (perlcc included) should be considered very experimental. Use for production purposes is strongly discouraged."

        see perlcc. You'll also find discussion about why perlcc died in the other links. pp is under active development, I have access to an old Solaris 10 system running perl 5.8.8 and have no problems creating executables using pp. to install pp and it's prerequisites use cpan:

        cpan pp