Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th July 2009, 02:10 PM
nightsider Offline
Registered User
 
Join Date: Jun 2008
Posts: 11
got a problem with perl

i am trying to run a perl script, ive set the executable option and it runs but the code dosnt run i get this instead.

Code:
[mark@nightsider ~]$ /home/mark/Desktop/phpbb.pl
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at /home/mark/Desktop/phpbb.pl line 12.
BEGIN failed--compilation aborted at /home/mark/Desktop/phpbb.pl line 12.
[mark@nightsider ~]$
any idea what is wrong with my installation, im running fedora 11
Reply With Quote
  #2  
Old 16th July 2009, 02:17 PM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,929
You're missing required module. Read the script's documentation for required modules and install them.

You can try searching UserAgent.pm and see which module it comes with and check if it's available in repos or CPAN.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #3  
Old 16th July 2009, 02:24 PM
nightsider Offline
Registered User
 
Join Date: Jun 2008
Posts: 11
im not sure where i should search ive goggled it but i couldn't find anything relevant, im pritty new to linux
Reply With Quote
  #4  
Old 16th July 2009, 02:57 PM
DrewP Offline
Registered User
 
Join Date: Mar 2008
Location: France
Posts: 70
My @INC is the same as yours.

On my machine the module is here and looks like this

Code:
$ ls -l /usr/lib/perl5/vendor_perl/5.10.0/LWP/UserAgent.pm 
-rw-r--r--. 1 root root 51803 2009-02-13 15:06 /usr/lib/perl5/vendor_perl/5.10.0/LWP/UserAgent.pm
If it isn't there on your machine you could try installing the appropriate package.

I *think* LWP is part of perl-libwww-perl so try

Code:
# yum install perl-libwww-perl
I have a script that uses LWP::UserAgent on my machine and it works just fine.

There is a package in the Fedora repository named "perl-LWP-UserAgent-Determined" I DO NOT have that one installed
Reply With Quote
  #5  
Old 16th July 2009, 10:47 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
The best way to find something like that is probably to do

(as root or with root privilege)

yum provides */UserAgent.pm
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
Reply

Tags
perl, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FC9] perl and required modules (perl(Test::More) Inception Using Fedora 0 15th May 2008 11:44 AM
Perl error? when testing Perl installation magnublm Using Fedora 3 21st September 2005 10:21 PM
Any way to resolve x86_64 Perl issue without yum remove perl.i386? jert Using Fedora 3 24th July 2005 07:31 PM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Using Fedora 0 16th December 2004 11:42 PM


Current GMT-time: 05:59 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat