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


In reply to Every Perl Script Is Failing Compilation by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.