Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

LWP won't work

Posted on 2004-03-25
3
Medium Priority
?
228 Views
Last Modified: 2010-03-04
I'm having a problem getting lwp(libwww-perl) to work so I ran the command:
perl -e "use LWP::UserAgent;"

This returned:

Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.0/mach /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.0/BSDPAN /usr/local/lib/perl5/5.8.0/mach /usr/local/lib/perl5/5.8.0 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

Is there anyway I can fix this? I just installed it from the ports. I did the same thing a few days ago on another server and it worked perfectly. Any ideas anybody?
0
Comment
Question by:cheatc1
3 Comments
 
LVL 15

Accepted Solution

by:
samri earned 500 total points
ID: 10685584
it looks like something is not quite good with your perl installation.  At least the @INC is not configured properly.

Quickest that I can suggest would be try to reinstall the perl.

You could try to tweak the setting (i knew this could be done), but could not suggest you the right component to try:

Maybe try to crosspost (or request for this Q to be moved to PERL area) which you may get a quicker feedback : http://www3.experts-exchange.com/Programming/Programming_Languages/Perl/
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 11785094
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:

    ACCEPT: samri

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Periwinkle
EE Cleanup Volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Loops Section Overview
Suggested Courses
Course of the Month11 days, 23 hours left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question