Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Perl compilation errors

by Bradpsu (Initiate)
on Sep 13, 2001 at 00:13 UTC ( [id://112007]=perlquestion: print w/replies, xml ) Need Help??

Bradpsu has asked for the wisdom of the Perl Monks concerning the following question:

All of a sudden I am unable to run any perl scripts. For example when I issue from a command prompt:
perl -e 0

I get the following:
perl -e 0
syntax error at -e line 1, near "0"
Execution of -e aborted due to compilation errors.


All programs also crash at the first command. Has anyone ever experienced this?

Replies are listed 'Best First'.
Re: Perl compilation errors
by earthboundmisfit (Chaplain) on Sep 13, 2001 at 00:28 UTC
    Need more info such as OS and Perl version. It sounds to me like a Win32 file mapping or path problem, but that's only because it's what I deal with (too often).
      This is Perl version 5.005_03 running on Red Hat Linux 6.2
      Everything has worked great on this box for a long time, and all of a sudden today I am getting these errors.
        If perl was installed via rpm, does rpm -V perl produce any output?
Re: Perl compilation errors
by chromatic (Archbishop) on Sep 13, 2001 at 01:13 UTC
    What's the output of perl -V? Also, what's the output of <code>which perl<code>?
Re: Perl compilation errors
by earthboundmisfit (Chaplain) on Sep 13, 2001 at 18:33 UTC
    What's changed on the box? If you su root -p and then run your one liner does it balk? If not, you have a permissions problem on the Perl directories.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://112007]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2024-04-25 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found