thorby has asked for the wisdom of the Perl Monks concerning the following question:
Update: I have found there are two Zlib.pm files at different levels in the @INC list. Am disabling the older to see what happens...
Further Update: renaming the older Zlib.pm eliminates the multiple messages about names being redefined. However it does not eliminate the recursive loop. It appears to happen now whenever cpan goes to fetch with LWP.
Now I've found yet a third Zlib.pm in the /System/Library/blahblah/IO directory. It appears to be older & simpler than the other two.
FINAL update: I Fixed This Sucker! (Raise my reputation, dudes...) Disabling (renaming) both Zlib.pm files leaving only IO/Zlib.pm eliminated the problem. Now I was able to execute the recommended cpan update (install Bundle::CPAN) and this operation replaced one of the Zlib.pm files with a yet newer one.
I speculate that when I used Apple's Migration Assistant to bring files from the old system, it somehow polluted the Macpro's library with old files. But I'll never know (or care, really). Is there something (known to be) wrong with the Perl delivered as part of new intel macs? I'm setting up a new Macpro (yay!) but, trying to install Perl-based software I've used on prior systems, cpan breaks badly (oooh). Here is a typical result -- it seems clear that two modules (compress/Zlib and constant.pm) are fighting -- then there is a recursive loop that has to be cancelled by ^C (sometimes) or killing the perl process other times.cpan> i * CPAN: Storable loaded ok Going to read /Users/dcortesi/.cpan/sources/authors/01mailrc.txt.gz gzip: /Users/dcortesi/.cpan/sources/authors/01mailrc.txt.gz: unexpecte +d end of file CPAN: LWP::UserAgent loaded ok Fetching with LWP: http://www.perl.com/CPAN/modules/02packages.details.txt.gz Subroutine AUTOLOAD redefined at /Library/Perl/5.8.6/darwin-thread-mul +ti-2level/Compress/Zlib.pm line 84. Subroutine isaFilehandle redefined at /Library/Perl/5.8.6/darwin-threa +d-multi-2level/Compress/Zlib.pm line 106. Subroutine isaFilename redefined at /Library/Perl/5.8.6/darwin-thread- +multi-2level/Compress/Zlib.pm line 115. Subroutine gzopen redefined at /Library/Perl/5.8.6/darwin-thread-multi +-2level/Compress/Zlib.pm line 122. Subroutine ParseParameters redefined at /Library/Perl/5.8.6/darwin-thr +ead-multi-2level/Compress/Zlib.pm line 139. Subroutine deflateInit redefined at /Library/Perl/5.8.6/darwin-thread- +multi-2level/Compress/Zlib.pm line 205. Subroutine inflateInit redefined at /Library/Perl/5.8.6/darwin-thread- +multi-2level/Compress/Zlib.pm line 217. Subroutine Compress::Zlib::deflateStream::deflateParams redefined at / +Library/Perl/5.8.6/darwin-thread-multi-2level/Compress/Zlib.pm line 2 +27. Subroutine compress redefined at /Library/Perl/5.8.6/darwin-thread-mul +ti-2level/Compress/Zlib.pm line 256. Subroutine uncompress redefined at /Library/Perl/5.8.6/darwin-thread-m +ulti-2level/Compress/Zlib.pm line 287. Constant subroutine Compress::Zlib::MAGIC1 redefined at /System/Librar +y/Perl/5.8.6/constant.pm line 108. Constant subroutine Compress::Zlib::MAGIC2 redefined at /System/Librar +y/Perl/5.8.6/constant.pm line 108. Constant subroutine Compress::Zlib::OSCODE redefined at /System/Librar +y/Perl/5.8.6/constant.pm line 108. Constant subroutine Compress::Zlib::FTEXT redefined at /System/Library +/Perl/5.8.6/constant.pm line 108. Constant subroutine Compress::Zlib::FHCRC redefined at /System/Library +/Perl/5.8.6/constant.pm line 108. Constant subroutine Compress::Zlib::FEXTRA redefined at /System/Librar +y/Perl/5.8.6/constant.pm line 108. Constant subroutine Compress::Zlib::FNAME redefined at /System/Library +/Perl/5.8.6/constant.pm line 108. Constant subroutine Compress::Zlib::FCOMMENT redefined at /System/Libr +ary/Perl/5.8.6/constant.pm line 108. Constant subroutine Compress::Zlib::NULL redefined at /System/Library/ +Perl/5.8.6/constant.pm line 108. Constant subroutine Compress::Zlib::RESERVED redefined at /System/Libr +ary/Perl/5.8.6/constant.pm line 108. Constant subroutine Compress::Zlib::MIN_HDR_SIZE redefined at /System/ +Library/Perl/5.8.6/constant.pm line 108. Subroutine memGzip redefined at /Library/Perl/5.8.6/darwin-thread-mult +i-2level/Compress/Zlib.pm line 326. Subroutine _removeGzipHeader redefined at /Library/Perl/5.8.6/darwin-t +hread-multi-2level/Compress/Zlib.pm line 357. Subroutine memGunzip redefined at /Library/Perl/5.8.6/darwin-thread-mu +lti-2level/Compress/Zlib.pm line 416. Going to read /Users/dcortesi/.cpan/sources/modules/02packages.details +.txt.gz Deep recursion on subroutine "Compress::Zlib::AUTOLOAD" at /Library/Pe +rl/5.8.6/darwin-thread-multi-2level/Compress/Zlib.pm line 87. ^CCaught SIGINT
2006-09-02 Retitled by jeffa, as per Monastery guidelines
Original title: 'cpan broken in new macpro :-('
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CPAN.pm broken on new MacPro?
by marto (Cardinal) on Sep 02, 2006 at 10:30 UTC | |
by thorby (Novice) on Sep 02, 2006 at 17:20 UTC | |
|
Re: CPAN.pm broken on new MacPro?
by calin (Deacon) on Sep 02, 2006 at 20:20 UTC | |
by Anonymous Monk on May 01, 2007 at 16:50 UTC |