Re: CPAN "r" always reports old versions

2003-02-25 Thread Lorin Rivers
On Tuesday, February 25, 2003, at 08:57 PM, Sherm Pendley wrote:

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
Ah.

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.
You rock!

Thanks...

--
Lorin Rivers
Marketing Professional


512.478.8114


Re: CPAN "r" always reports old versions

2003-02-25 Thread Ken Williams
On Tuesday, February 25, 2003, at 08:57  PM, Sherm Pendley wrote:
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.
I think the UNINST=1 option is only valid when doing a 'make install', 
not when doing a 'perl Makefile.PL'.  I haven't checked this, because 
it's undocumented (anywhere!), and I really hate poking around in 
EU::MakeMaker and EU::Install more than I have to (which is an awful 
lot).

In any case, you can configure CPAN.pm so that it always supplies 
UNINST=1 when doing 'make install', and that should solve your problem.

As for *why* the core lib always seems to appear before the site lib in 
@INC, I admit to being baffled.  Apparently that's the way it is on 
most platforms, and I haven't heard any good reason for it (or actually 
even any bad reason other than "that's just the way it is").

 -Ken



Re: CPAN "r" always reports old versions

2003-02-25 Thread Sherm Pendley
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.



Re: CPAN "r" always reports old versions

2003-02-25 Thread Lorin Rivers
On Tuesday, February 25, 2003, at 06:31 PM, Ken Williams wrote:
You watch the screen when it installs a module, and look at what path 
it says it's installing it to.

There are other ways to try to figure it out, involving poking around 
in config files and so on, but under certain conditions those config 
file entries are ignored (a problem I recently uncovered in 
ExtUtils::Install and MakeMaker), so it's best in this case to just 
look at where it actually installed to.

 -Ken
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?
--
Lorin Rivers
Marketing Professional


512.478.8114



Re: CPAN "r" always reports old versions

2003-02-25 Thread Ken Williams
On Tuesday, February 25, 2003, at 06:19  PM, Lorin Rivers wrote:

On Tuesday, February 25, 2003, at 05:11 PM, Ken Williams wrote:

On Tuesday, February 25, 2003, at 11:10  AM, Lorin Rivers wrote:
When I run "r" in CPAN, it always reports old versions, even after I 
do "force install 'something'.

I'm using fink and perl5.8 on 10.2.4.
It's probably installing to a location that's not in @INC.  Compare 
the place it tells you it's installing things to what you see when 
you do a 'perl -V' in the shell.

 -Ken
How do I find out where CPAN is installing things?

You watch the screen when it installs a module, and look at what path 
it says it's installing it to.

There are other ways to try to figure it out, involving poking around 
in config files and so on, but under certain conditions those config 
file entries are ignored (a problem I recently uncovered in 
ExtUtils::Install and MakeMaker), so it's best in this case to just 
look at where it actually installed to.

 -Ken



Re: CPAN "r" always reports old versions

2003-02-25 Thread Lorin Rivers
On Tuesday, February 25, 2003, at 05:11 PM, Ken Williams wrote:

On Tuesday, February 25, 2003, at 11:10  AM, Lorin Rivers wrote:
When I run "r" in CPAN, it always reports old versions, even after I 
do "force install 'something'.

I'm using fink and perl5.8 on 10.2.4.
It's probably installing to a location that's not in @INC.  Compare 
the place it tells you it's installing things to what you see when you 
do a 'perl -V' in the shell.

 -Ken
How do I find out where CPAN is installing things?
--
Lorin Rivers
Marketing Professional


512.478.8114


Re: CPAN "r" always reports old versions

2003-02-25 Thread Ken Williams
On Tuesday, February 25, 2003, at 11:10  AM, Lorin Rivers wrote:
When I run "r" in CPAN, it always reports old versions, even after I 
do "force install 'something'.

I'm using fink and perl5.8 on 10.2.4.
It's probably installing to a location that's not in @INC.  Compare the 
place it tells you it's installing things to what you see when you do a 
'perl -V' in the shell.

 -Ken



CPAN "r" always reports old versions

2003-02-25 Thread Lorin Rivers
When I run "r" in CPAN, it always reports old versions, even after I do 
"force install 'something'.

I'm using fink and perl5.8 on 10.2.4.
--
Lorin Rivers
Marketing Professional


512.478.8114