Red Hat Bugzilla – Bug 971085
perl-Digest-MD5-File installs MD5.pm to wrong path
Last modified: 2013-06-07 11:25:25 EDT
Description of problem:
After installing the package 'perl-Digest-Perl-MD5.noarch' on Fedora 18, Perl is still unable to include Digest::MD5.
Version-Release number of selected component (if applicable):
I created the following test case:
Steps to Reproduce:
1. Create test case and save as test.pl
2. Run: perl test.pl
Can't locate Digest/MD5.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at test.pl line 5.
The MD5.pm file is placed wrong:
The the correct path is:
This solved the problem for me:
/usr/share/perl5/vendor_perl/Digest$ sudo ln -s Perl/MD5.pm MD5.pm
Digest::Perl::MD5 and Digest::MD5 are not the same module. The perl-Digest-Perl-MD5 package contains the former but you want the latter.
To fix this, first remove the symlink you created, and then install the package you're actually looking for:
# rm /usr/share/perl5/vendor_perl/Digest/MD5.pm
# yum install 'perl(Digest::MD5)'