Undefined subroutine &Carp::longmess_heavy called at /usr/lib/perl5/5.
+8.8/Carp.pm line 239.
Warning: No success on command[/usr/bin/perl Makefile.PL]
ZEFRAM/Carp-1.26.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
AFAICT, you should be getting that same failure *every* time you do a cpan install ... and it puzzles me how *any* cpan install could ever succeed while that broken version of Carp is being found.
Every time 'perl Makefile.PL' gets run, ExtUtils/MakeMaker.pm is loaded and it, in turn, loads that broken version of Carp - at which point the build fails.
I presume the problem there is that /usr/lib/perl5/5.8.8/Carp/Heavy.pm, which should define the longmess_heavy sub, is either corrupted or not being loaded - and the best way I can see of fixing this would be to manually copy'n'paste Heavy.pm (from the source distro) to the location that I've just specified. Maybe you should also copy Carp.pm from the source distro to /usr/lib/perl5/5.8.8/Carp.pm (just to make sure that you have matching versions of Carp.pm and Heavy.pm).
However, I believe this is the *system* perl that you're tampering with, and I'm always a bit nervous when it comes to doing that lest the system gets broken.
It would be far preferable that you install and use a different perl (say, /usr/local/perl) and leave the system perl well alone.
Cheers,
Rob