LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   yum: failed dependency for installed perl module (https://www.linuxquestions.org/questions/linux-server-73/yum-failed-dependency-for-installed-perl-module-907691/)

stehman 10-11-2011 10:50 PM

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.

knudfl 10-12-2011 03:07 AM

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

.

stehman 10-12-2011 10:11 PM

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?

knudfl 10-15-2011 08:41 AM

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.

stehman 10-17-2011 12:34 PM

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.

knudfl 10-17-2011 12:53 PM

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.)

..


All times are GMT -5. The time now is 12:28 PM.