Re: Don't install a different version than you promised!

[prev] [thread] [next] [lurker] [Date index for 2005/05/26]

From: Michael G Schwern
Subject: Re: Don't install a different version than you promised!
Date: 21:27 on 26 May 2005
On Thu, May 26, 2005 at 12:16:03PM +0200, Philip Newton wrote:
> The next time I started ppm, ten minutes later, it bombed with:
> 
> "break_at" is not exported by the Text::Reform module
> Can't continue after import errors at
> C:/Programme/ActivePerl/site/lib/Text/Reform.pm line 43
> BEGIN failed--compilation aborted at
> C:/Programme/ActivePerl/site/lib/Text/Autoformat.pm line 9.
> Compilation failed in require at C:\Programme\ActivePerl\bin\ppm3-bin line 12.
> BEGIN failed--compilation aborted at
> C:\Programme\ActivePerl\bin\ppm3-bin line 12.
> 
> Looking in Text/Reform.pm, it appears that this is version 1.10 -- not
> 1.11! Even though ppm thinks it's version 1.11.
> 
> And downloading Reform.pm v1.11 shows that it's a week older than the
> v1.10 that was installed by ppm. WTF?

I'm going to suspect that you are the victim of "shadowing".  At some point
you installed Text::Reform 1.10 from CPAN and it went into the "site"
library directory.  The PPM (rightfully) installed into the "vendor"
library directory.  Perl almost always looks at "site" before "vendor" when
trying to load modules, and rightly so because whatever you install locally
should take priority over the vendor's stuff... the assumption being that
you've decided to take over maintenance of Perl from your vendor.

Do a find and you'll probably find a second Text\Reform.pm.

The hate here is that you have to do this sort of thing rather often,
replacing one bit of normally packaged software, and things like this 
happen.  Perl doesn't do a very good job of it.  Debian does ok.


-- 
Michael G Schwern     schwern@xxxxx.xxx     http://www.pobox.com/~schwern
Ahh email, my old friend.  Do you know that revenge is a dish that is best 
served cold?  And it is very cold on the Internet!

Generated at 21:00 on 27 May 2005 by mariachi 0.52