|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Upgrading XS module to later versionby clerew (Novice) |
| on Jun 18, 2015 at 21:05 UTC ( [id://1131072]=perlquestion: print w/replies, xml ) | Need Help?? |
|
clerew has asked for the wisdom of the Perl Monks concerning the following question: First my setup:
Ubuntu 14.04, with Perl installed in /usr (and one doesn't tinker with /usr) Now the problem
List::Util (as supplied in /usr) is version 1.27 In /usr/local/lib/perl/5.18.2: where Util.pm is the full compiled binary But, since /usr/local/lib/perl/5.18.2 does not contain any List directory, installing DateTime fails because it still sees the old List::Util So I grabbed /usr/lib/perl/5.18/List/Util.pm (the one I originally tried to make "invisible") and hacked it to look like and inserted it into /usr/local/lib/perl/5.18.2 giving
But this still picked up the old 1.27 binary, and I got the ridiculous situation
Incidentally, I tried to revert to the old situation by renaming the new List as Lost, but it still gives the same result to m List::Util so there must be some secret cache somewhere which remembers that state, even after a logout/reboot). So Finally, the QuestionWhat incantations do I have to give to make my List/Util.pm connect to the newly downloaded binary XS version? And thank you for your patience in reading this far.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||