Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

LWP won't work

Posted on 2004-03-25
3
Medium Priority
?
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

722 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