Subject: | Sub::Util 1.41 incorrectly installed on perl 5.10.1 |
$ perl -MList::Util -MSub::Util=subname -E 'say "perl $^V"; say "Sub::Util $Sub::Util::VERSION"; say $INC{"Sub/Util.pm"}; say "List::Util $List::Util::VERSION"; $INC{"List/Util.pm"}; say subname(subname)'
perl v5.10.1
Sub::Util 1.41
/home/dolmen/.plenv/versions/5.10.1/lib/perl5/site_perl/5.10.1/x86_64-linux/Sub/Util.pm
List::Util 1.21
Undefined subroutine &Sub::Util::subname called at -e line 1.
@INC:
/home/dolmen/.plenv/versions/5.10.1/lib/perl5/5.10.1/x86_64-linux
/home/dolmen/.plenv/versions/5.10.1/lib/perl5/5.10.1
/home/dolmen/.plenv/versions/5.10.1/lib/perl5/site_perl/5.10.1/x86_64-linux
/home/dolmen/.plenv/versions/5.10.1/lib/perl5/site_perl/5.10.1
Note that the directories for List/Util.pm and Sub/Util.pm are not the same.
And I have 2 different versions of Util.so
$ find /home/dolmen/.plenv/versions/5.10.1/lib/perl5 -name Util.so -o -name Util.pm | grep -E '(List|Sub)/Util' | xargs ls -l
-r-xr-xr-x 1 dolmen dolmen 32988 juin 8 2014 /home/dolmen/.plenv/versions/5.10.1/lib/perl5/5.10.1/x86_64-linux/auto/List/Util/Util.so
-r--r--r-- 1 dolmen dolmen 6698 juin 8 2014 /home/dolmen/.plenv/versions/5.10.1/lib/perl5/5.10.1/x86_64-linux/List/Util.pm
-r-xr-xr-x 1 dolmen dolmen 59486 févr. 13 16:11 /home/dolmen/.plenv/versions/5.10.1/lib/perl5/site_perl/5.10.1/x86_64-linux/auto/List/Util/Util.so
-r--r--r-- 1 dolmen dolmen 14226 sept. 5 2014 /home/dolmen/.plenv/versions/5.10.1/lib/perl5/site_perl/5.10.1/x86_64-linux/List/Util.pm
-r--r--r-- 1 dolmen dolmen 4431 sept. 5 2014 /home/dolmen/.plenv/versions/5.10.1/lib/perl5/site_perl/5.10.1/x86_64-linux/Sub/Util.pm
So it appears that when Sub::Util 1.41 is installed, Util.so is not upgraded (or at least not installed in directory that .
Other dependencies relevant to install:
ExtUtils::MakeMaker 6.55_02
ExtUtils::Install 1.54
--
Olivier Mengué - http://perlresume.org/DOLMEN