LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-11-2011, 11:50 PM   #1
stehman
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Rep: Reputation: 0
yum: failed dependency for installed perl module


CentOS 6.0 x86_64
yum.noarch 3.2.27-14.el6.centos
perl.x86_64 4:5.10.1-115.el6

When I try to install logwatch via yum, I get:

Quote:
error: Failed dependencies:
perl(Date::Manip) is needed by logwatch-7.3.6-49.el6.noarch
But when I check for the module...

Quote:
# perl -MDate::Manip -e "print \"Module installed.\\n\";"
Module installed.
I removed the module and reinstalled it, but still get the failed dependency. This server also runs cpanel, which agrees that the module is installed.

I have the logwatch rpm and don't anticipate a problem using it if I install without a dependency check, but I'd rather figure out dependency issue.
 
Old 10-12-2011, 04:07 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,119

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
Well, you could try :

# yum install perl-Date-Manip
Or # yum reinstall perl-Date-Manip


Manual reinstall :
# rpm -Uvh --force perl-Date-Manip-5.54-4.el6.noarch.rpm
http://mirror.centos.org/centos/6.0/...el6.noarch.rpm

.
 
Old 10-12-2011, 11:11 PM   #3
stehman
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you for the response.

I uninstalled Date::Manip, then installed it using yum, which allowed me to install logwatch. In the end, however, I undid all that, reinstalled Data::Manip using cpanm, and installed the logwatch rpm using --nodeps. For this server I think it's better for cpanel know what's installed than yum.

So cpan and yum do not share registry information?
 
Old 10-15-2011, 09:41 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,119

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
Yum / rpm will check for installed files / packages
in the "rpm data base" ( /var/lib/rpm/*** ).

Manually installed files, like 'cpan install's : No data base for those.
 
Old 10-17-2011, 01:34 PM   #5
stehman
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks. What made me believe otherwise is, when I was researching the problem, installing the module via cpan is how some others claimed to have solved it.
 
Old 10-17-2011, 01:53 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,119

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
Well, you can install the package with yum.
Then no dependency issues with the package.

And afterwards do a manual install :
cd Date-Manip-6.25/ && perl Makefile.PL && make ; # make install
http://search.cpan.org/~sbeck/Date-M...Date/Manip.pod

( Cpan might say : Is up to date, if you install a second time with cpan.)

..

Last edited by knudfl; 10-17-2011 at 01:58 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't know how to solve the Perl dependency (Getopt::Std) error that yum update gives info2share Linux - Software 2 07-07-2009 04:18 AM
YUM update failed: Dependency Error wegadnie Linux - General 5 12-23-2008 11:56 PM
Perl module Compress::Zlib installed but perl not detecting it danran Programming 0 05-03-2007 02:50 PM
Perl module dependency problem coolamit78 Linux - Software 2 11-13-2005 01:18 PM
Says Failed dependency even when libpcap.so.0 installed. X-Unix Mandriva 2 09-14-2004 12:19 AM


All times are GMT -5. The time now is 08:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration