Solved

LWP won't work

Posted on 2004-03-25
3
214 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 125 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
phpmyadmin installation 3 62
Problem with .htaccess file 4 70
How can I write .htaccess code to redirect 301 pages? 1 122
Redirect to catagorie in case of 404 4 7
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
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.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

772 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