Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
Having a bit of a problem with Perl, which I have running on a server on a standalone network. Whilst installing Bugzilla, I was manually installing all the required modules and then had problems with the checksetup.pl script looking in the wrong places for *.pm files. Stupidly I copied the *.pm files and related folders to where it was looking, instead of linking it properly, and obviously this didn't work. I then deleted the folders and files I had copied and now every Perl script I try to run fails compilation (see example error message output below). It doesn't matter whether it is the checksetup.pl script, Makefile.pl scripts or even some of the cron jobs we have running on the server, they all throw up the same sort of error. I have googled this, and spent a while trawling through the results. A few people seem to have had similar problems, but not with the same reasons, but there doesn't seem to be an answer in how to fix it anywhere. Is there some some sort of library that holds all the installed modules that could have been changed? Or am I missing something really obvious?
Example error messages:
Global symbol "$VERSION" requires explicit package name at /usr/lib/pe +rl5/5.8.8/File/Spec.pm line 6. Global symbol "$VERSION" requires explicit package name at /usr/lib/pe +rl5/5.8.8/File/Spec.pm line 7. Global symbol "$VERSION" requires explicit package name at /usr/lib/pe +rl5/5.8.8/File/Spec.pm line 7. Global symbol "@ISA" requires explicit package name at /usr/lib/perl5/ +5.8.8/File/Spec.pm line 23. Compilation failed in require at /usr/lib/perl5/5.8.8/Carp.pm line 318 +. BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/Carp.pm line + 318. Compilation failed in require at /usr/lib/perl5/5.8.8/warnings.pm line + 134. BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/warnings.pm +line 134. Compilation failed in require at /usr/lib/perl5/5.8.8/warnings/registe +r.pm line 24. Compilation failed in require at /usr/lib/perl5/5.8.8/vars.pm line 7. BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/vars.pm line + 7. Compilation failed in require at /usr/lib/perl5/5.8.8/ExtUtils/MakeMak +er/Config.pm line 9. BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/ExtUtils/Mak +eMaker/Config.pm line 9. Compilation failed in require at /usr/lib/perl5/5.8.8/ExtUtils/MakeMak +er.pm line 7. BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/ExtUtils/Mak +eMaker.pm line 7. Compilation failed in require at Makefile.PL line 1. BEGIN failed--compilation aborted at Makefile.PL line 1.
Use of uninitialized value in vec at /usr/lib/perl5/5.8.8/warnings/reg +ister.pm line 31. Use of uninitialized value in vec at /usr/lib/perl5/5.8.8/warnings/reg +ister.pm line 41. Use of uninitialized value in vec at /usr/lib/perl5/5.8.8/warnings/reg +ister.pm line 41. Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8. +8/warnings/register.pm line 41. Use of uninitialized value in vec at /usr/lib/perl5/5.8.8/warnings/reg +ister.pm line 47. Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8. +8/warnings/register.pm line 47. Array found where operator expected at /usr/lib/perl5/5.8.8/Carp.pm li +ne 484, at end of line (Do you need to predeclare Carp::longmess?) Array found where operator expected at /usr/lib/perl5/5.8.8/Carp.pm li +ne 485, at end of line (Do you need to predeclare Carp::shortmess?) Array found where operator expected at /usr/lib/perl5/5.8.8/Carp.pm li +ne 486, at end of line (Do you need to predeclare Carp::shortmess?) Array found where operator expected at /usr/lib/perl5/5.8.8/Carp.pm li +ne 487, at end of line (Do you need to predeclare Carp::longmess?) syntax error at /usr/lib/perl5/5.8.8/Carp.pm line 484, near "Carp::lon +gmess @_" syntax error at /usr/lib/perl5/5.8.8/Carp.pm line 485, near "Carp::sho +rtmess @_" syntax error at /usr/lib/perl5/5.8.8/Carp.pm line 486, near "Carp::sho +rtmess @_" syntax error at /usr/lib/perl5/5.8.8/Carp.pm line 487, near "Carp::lon +gmess @_" Compilation failed in require at /usr/lib/perl5/5.8.8/warnings.pm line + 134. BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/warnings.pm +line 134. Compilation failed in require at /usr/lib/perl5/5.8.8/File/Basename.pm + line 52. BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/File/Basenam +e.pm line 52. Compilation failed in require at checksetup.pl line 47. BEGIN failed--compilation aborted at checksetup.pl line 47.
Thanks for any help in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Every Perl Script Is Failing Compilation
by Marshall (Canon) on Sep 02, 2009 at 19:22 UTC | |
by Anonymous Monk on Sep 03, 2009 at 14:04 UTC | |
by Marshall (Canon) on Sep 05, 2009 at 04:49 UTC | |
by Marshall (Canon) on Sep 10, 2009 at 02:22 UTC | |
by Anonymous Monk on Sep 10, 2009 at 08:59 UTC | |
by Marshall (Canon) on Sep 10, 2009 at 15:41 UTC | |
by Anonymous Monk on Sep 11, 2009 at 14:10 UTC | |
|
Re: Every Perl Script Is Failing Compilation
by stevieb (Canon) on Sep 02, 2009 at 14:26 UTC | |
by Anonymous Monk on Sep 03, 2009 at 14:01 UTC |