Solved

LWP won't work

Posted on 2004-03-25
3
209 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
Comment Utility
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
Comment Utility
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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now