Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Puzzled by ppm

by wrog (Friar)
on Feb 28, 2012 at 00:06 UTC ( [id://956555]=note: print w/replies, xml ) Need Help??


in reply to Re: Puzzled by ppm
in thread Puzzled by ppm

some searching seems to indicate that PPM itself (or at least the older pre-version-4 PPM) sets aside certain modules and makes sure to only load a given set of versions that are known to work together — best guess here is that when PPM runs, it messes with @INC so that the lib directory is in front of the site/lib directory so that it's sure of getting the versions that are known to work. Apparently, using the --precious flag will indeed do an install into the lib directory so that PPM will see it, but that
  1. you don't actually have to do this since for all ordinary programs, site/lib will take precedence anyway, and
  2. if you install something stupid/b0rken into lib that causes PPM to break, this will be difficult to fix.

Things to try

  • perl -mArchive::Tar -e "print $Archive::Tar::VERSION"
  • perl -IC:\Perl\lib -mArchive::Tar -e "print $Archive::Tar::VERSION"

If the first gives you 1.82 and the second gives you 1.48-r1, then you'll know that you're indeed getting the later version for ordinary code, the only way the earlier version is even seen is if you mess with @INC, and PPM is evidently messing with @INC and so you don't actually have to do anything (i.e., if you can live with PPM itself seeing the wrong version...)

Or, if you're feeling adventurous you could try upgrade --precious on Archive::Tar and see what happens.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://956555]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-03-19 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found