Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th September 2008, 19:09
dealspiggy dealspiggy is offline
Member
 
Join Date: Mar 2008
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default Perl problem when installing awstats on CentOS 5.2

I got this error when trying to install the awstats rpm package:

Quote:
perl(LWP::UserAgent) is needed by awstats-6.8-1.noarch
How to resolve this dependency problem? thanks
Reply With Quote
Sponsored Links
  #2  
Old 12th September 2008, 21:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,792
Thanks: 821
Thanked 5,338 Times in 4,188 Posts
Default

Please run:

perl -MCPAN -e shell

and after the initial perl shell configuration run:

install LWP::UserAgent

to quot the perl shell, enter "q".
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
mannes (14th January 2009)
  #3  
Old 12th September 2008, 21:49
dealspiggy dealspiggy is offline
Member
 
Join Date: Mar 2008
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here's the result of the installation of LWP:UserAgent

Code:
li27-127 /: perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install LWP::UserAgent
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Fri, 12 Sep 2008 12:02:48 GMT
LWP::UserAgent is up to date.
however, when I ran 'rpm -ivh awstats-6.8-1.noarch.rpm', I still get the same error:

Quote:
rror: Failed dependencies:
perl(LWP::UserAgent) is needed by awstats-6.8-1.noarch
I even tried restarting the server, but problem still persists.
any ideas?

thanks!
Reply With Quote
  #4  
Old 12th September 2008, 21:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,792
Thanks: 821
Thanked 5,338 Times in 4,188 Posts
Default

I guess that the awstats rpm is not able to recognize that LWP::UserAgent is already installed. You should try to search with yum if there is a rpm package for LWP::UserAgent and install that too.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 21st November 2008, 12:28
PMan PMan is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by dealspiggy View Post
Here's the result of the installation of LWP:UserAgent

Code:
li27-127 /: perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install LWP::UserAgent
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Fri, 12 Sep 2008 12:02:48 GMT
LWP::UserAgent is up to date.
however, when I ran 'rpm -ivh awstats-6.8-1.noarch.rpm', I still get the same error:



I even tried restarting the server, but problem still persists.
any ideas?

thanks!

Did you ever figure out what was going on here? Any help appreciated.

I'm seeing the exact same problem on Red Hat 5.2.


[gg@ffff download]$ sudo cpan -i LWP::UserAgent
CPAN: Storable loaded ok
Going to read /home/jq/.cpan/Metadata
Database was generated on Tue, 23 Sep 2008 13:28:42 GMT
LWP::UserAgent is up to date.
[gg@ffff download]$ sudo rpm -i awstats-6.8-1.noarch.rpm
error: Failed dependencies:
perl(LWP::UserAgent) is needed by awstats-6.8-1.noarch
[gg@ffff download]$


I can't see what the problem is and do not really want to start installing Perl modules from yum (is that even possible - I can't seem to find LWP::UserAgent using yum?)
Reply With Quote
  #6  
Old 22nd November 2008, 14:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

I think you can do it like this:
Code:
yum install perl-LWP-UserAgent
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 22nd November 2008, 14:22
PMan PMan is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Falko but I don't think that package is available through yum.

[aa@bb]$ sudo yum install perl-LWP-UserAgent
Loading "rhnplugin" plugin
rhel-x86_64-server-5 100% |=========================| 1.4 kB 00:00
Setting up Install Process
Parsing package install arguments
No package perl-LWP-UserAgent available.
Nothing to do
[aa@bb]$
Reply With Quote
Reply

Bookmarks

Thread Tools
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
Centos 5.2 FTP Problem colk Technical 4 20th August 2008 18:43
Problem when installing Joomla 1.0.13 from ports on FreeBSD oninea Server Operation 0 9th November 2007 03:35
Problem installing on CentOS 4.2 bokko Installation/Configuration 4 1st March 2006 17:14
Problem installing on CentOS 4.2 bokko Installation/Configuration 0 1st March 2006 11:28
Problem installing ISPConfig, then with MySQL... ctroyp Installation/Configuration 7 26th September 2005 16:37


All times are GMT +2. The time now is 23:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.