On Tuesday, February 25, 2003, at 09:40 PM, Lorin Rivers wrote:

It looks as if there's perl stuff in both
/Library/Perl/darwin
and
/System/Library/Perl/darwin

The latter seems to include the outdated things CPAN reports, but CPAN installs stuff into the former. How do I fix things?

There's nothing to fix - what you're describing is precisely how things should be. CPAN is supposed to install stuff in /Library/Perl, and the core modules shipped with Perl are in /System/Library/Perl


Here's the rub - /System/Library/Perl appears before /Library/Perl in Perl's module search path. So, if different versions of the same module appear in both places, the copy in /System/Library/Perl will always "trump" the other.

The answer, as with the answer to finding where CPAN puts things, is to pay attention to what CPAN is telling you. When you install a CPAN module that's an upgrade to a core module, it warns you about this issue, and explains how to avoid the problem you're having - use the "UNINST=1" option when you run Makefile.PL. This will delete the old version in /System/Library/Perl, as well as installing the new one in /Library/Perl.

sherm--

Heisenberg may have slept here.



Reply via email to