Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

Re^2: Strange @INC behavior

by MistaMuShu (Beadle)
on Oct 18, 2004 at 04:24 UTC ( [id://400056]=note: print w/replies, xml ) Need Help??

in reply to Re: Strange @INC behavior
in thread Strange @INC behavior

the output is:

Can't locate HTTP/ in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at /usr/lib/perl/5.6.1/LWP/ line 16.
BEGIN failed--compilation aborted at /usr/lib/perl/5.6.1/LWP/ line 16. Compilation failed in require at -e line 1.

That's really interesting that it found /usr/lib/perl/5.6.1/LWP/ in this example, and failed because of lack of HTTP/, but it still doesn't explain why it "Can't locate LWP/" when I try to run my script. Is there something blatantly obvious I'm missing?

Replies are listed 'Best First'.
Re^3: Strange @INC behavior
by ysth (Canon) on Oct 18, 2004 at 10:11 UTC
    It should be Can you try the above snippet with LWP::UserAgent instead of LWP::Simple? And also show the output of the command: perl -V
      I recieve the same "Can't locate" message as above. In haste, and because I needed many other packages, I went ahead and did a dist-upgrade to sarge/testing, so now I do have 2 versions of perl installed :-( I'm afraid I've probably made my situation worse, but I'm going to give it another shot and try to figure it out on my own. 5.6.1 and 5.8.4 are both installed now.
        Multiple versions of perl should coexist with no problems (though /usr/bin/perl can only be one of them :).

        So is it saying "Can't locate HTTP/ in @INC" or "Can't locate LWP/" in @INC" ? (HTTP::Status is also part of LWP, and should be there.) If the file it is complaining about is really there, try

        print(do "" ? "ok" : "error: $!");

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://400056]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-06-16 15:17 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.