Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

perlcc not working

by puneet.keswani (Novice)
on Aug 08, 2012 at 10:12 UTC ( #986203=perlquestion: print w/replies, xml ) Need Help??
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 (Bishop) 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://986203]
Approved by ww
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2017-08-20 10:40 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (315 votes). Check out past polls.