I am on Mac OS X Snow Leopard and recently used macports to install Perl 5.8.9 at /opt/local/bin/perl5 and am trying to install the Image::Magick module using CPAN. So I get the latest CPAN and and doing OK, but then it hangs with a dependency issue... needs Compress::Zlib. So I tried to install it directly and am consistently getting a "500" error with LWP but I cannot seem to figure out what I can do to get over the hump and no searches seem to provide comparable problems/solutions. Any help would be appreciated.
cpan[2]&gt; install Compress::Zlib + + CPAN: Storable loaded ok (v2.19) Going to read '/Users/markhunnibell/.cpan/Metadata' Database was generated on Fri, 25 Feb 2011 10:31:13 GMT Running install for module 'Compress::Zlib' Running make for P/PM/PMQS/IO-Compress-2.033.tar.gz CPAN: Digest::SHA loaded ok (v5.50) Checksum for /Users/markhunnibell/.cpan/sources/authors/id/P/PM/PMQS/I +O-Compress-2.033.tar.gz ok Scanning cache /Users/markhunnibell/.cpan/build for sizes ...................................................................... +......DONE CPAN: Archive::Tar loaded ok (v1.52) x IO-Compress-2.033/ <readmore>x IO-Compress-2.033/lib/ x IO-Compress-2.033/lib/File/ x IO-Compress-2.033/lib/File/GlobMapper.pm x IO-Compress-2.033/lib/Compress/ x IO-Compress-2.033/lib/Compress/Zlib.pm x IO-Compress-2.033/lib/IO/ x IO-Compress-2.033/lib/IO/Uncompress/ x IO-Compress-2.033/lib/IO/Uncompress/RawInflate.pm x IO-Compress-2.033/lib/IO/Uncompress/Gunzip.pm x IO-Compress-2.033/lib/IO/Uncompress/Unzip.pm x IO-Compress-2.033/lib/IO/Uncompress/Base.pm x IO-Compress-2.033/lib/IO/Uncompress/Inflate.pm x IO-Compress-2.033/lib/IO/Uncompress/Bunzip2.pm x IO-Compress-2.033/lib/IO/Uncompress/Adapter/ x IO-Compress-2.033/lib/IO/Uncompress/Adapter/Identity.pm x IO-Compress-2.033/lib/IO/Uncompress/Adapter/Inflate.pm x IO-Compress-2.033/lib/IO/Uncompress/Adapter/Bunzip2.pm x IO-Compress-2.033/lib/IO/Uncompress/AnyInflate.pm x IO-Compress-2.033/lib/IO/Uncompress/AnyUncompress.pm x IO-Compress-2.033/lib/IO/Compress/ x IO-Compress-2.033/lib/IO/Compress/Base.pm x IO-Compress-2.033/lib/IO/Compress/Zip.pm x IO-Compress-2.033/lib/IO/Compress/Zip/ x IO-Compress-2.033/lib/IO/Compress/Zip/Constants.pm x IO-Compress-2.033/lib/IO/Compress/Adapter/ x IO-Compress-2.033/lib/IO/Compress/Adapter/Identity.pm x IO-Compress-2.033/lib/IO/Compress/Adapter/Deflate.pm x IO-Compress-2.033/lib/IO/Compress/Adapter/Bzip2.pm x IO-Compress-2.033/lib/IO/Compress/RawDeflate.pm x IO-Compress-2.033/lib/IO/Compress/Deflate.pm x IO-Compress-2.033/lib/IO/Compress/Gzip/ x IO-Compress-2.033/lib/IO/Compress/Gzip/Constants.pm x IO-Compress-2.033/lib/IO/Compress/Bzip2.pm x IO-Compress-2.033/lib/IO/Compress/Gzip.pm x IO-Compress-2.033/lib/IO/Compress/Zlib/ x IO-Compress-2.033/lib/IO/Compress/Zlib/Constants.pm x IO-Compress-2.033/lib/IO/Compress/Zlib/Extra.pm x IO-Compress-2.033/lib/IO/Compress/Base/ x IO-Compress-2.033/lib/IO/Compress/Base/Common.pm x IO-Compress-2.033/MANIFEST x IO-Compress-2.033/private/ x IO-Compress-2.033/private/MakeUtil.pm x IO-Compress-2.033/README x IO-Compress-2.033/Changes x IO-Compress-2.033/Makefile.PL x IO-Compress-2.033/t/ x IO-Compress-2.033/t/101truncate-bzip2.t x IO-Compress-2.033/t/010examples-bzip2.t x IO-Compress-2.033/t/004gziphdr.t x IO-Compress-2.033/t/110encode-gzip.t x IO-Compress-2.033/t/100generic-gzip.t x IO-Compress-2.033/t/110encode-deflate.t x IO-Compress-2.033/t/106prime-deflate.t x IO-Compress-2.033/t/102tied-zip.t x IO-Compress-2.033/t/002any-transparent.t x IO-Compress-2.033/t/108anyunc-zip.t x IO-Compress-2.033/t/cz-06gzsetp.t x IO-Compress-2.033/t/103newtied-gzip.t x IO-Compress-2.033/t/105oneshot-bzip2.t x IO-Compress-2.033/t/102tied-rawdeflate.t x IO-Compress-2.033/t/107multi-deflate.t x IO-Compress-2.033/t/101truncate-rawdeflate.t x IO-Compress-2.033/t/109merge-deflate.t x IO-Compress-2.033/t/cz-08encoding.t x IO-Compress-2.033/t/101truncate-deflate.t x IO-Compress-2.033/t/108anyunc-bzip2.t x IO-Compress-2.033/t/106prime-rawdeflate.t x IO-Compress-2.033/t/108anyunc-rawdeflate.t x IO-Compress-2.033/t/109merge-rawdeflate.t x IO-Compress-2.033/t/002any-zip.t x IO-Compress-2.033/t/108anyunc-deflate.t x IO-Compress-2.033/t/cz-01version.t x IO-Compress-2.033/t/002any-gzip.t x IO-Compress-2.033/t/105oneshot-gzip.t x IO-Compress-2.033/t/103newtied-bzip2.t x IO-Compress-2.033/t/050interop-gzip.t x IO-Compress-2.033/t/100generic-deflate.t x IO-Compress-2.033/t/002any-rawdeflate.t x IO-Compress-2.033/t/006zip.t x IO-Compress-2.033/t/110encode-bzip2.t x IO-Compress-2.033/t/106prime-gzip.t x IO-Compress-2.033/t/001zlib-generic-zip.t x IO-Compress-2.033/t/010examples-zlib.t x IO-Compress-2.033/t/103newtied-rawdeflate.t x IO-Compress-2.033/t/001zlib-generic-deflate.t x IO-Compress-2.033/t/109merge-gzip.t x IO-Compress-2.033/t/110encode-rawdeflate.t x IO-Compress-2.033/t/103newtied-zip.t x IO-Compress-2.033/t/102tied-deflate.t x IO-Compress-2.033/t/107multi-bzip2.t x IO-Compress-2.033/t/107multi-rawdeflate.t x IO-Compress-2.033/t/020isize.t x IO-Compress-2.033/t/107multi-gzip.t x IO-Compress-2.033/t/globmapper.t x IO-Compress-2.033/t/100generic-bzip2.t x IO-Compress-2.033/t/999pod.t x IO-Compress-2.033/t/104destroy-zip.t x IO-Compress-2.033/t/107multi-zip.t x IO-Compress-2.033/t/102tied-bzip2.t x IO-Compress-2.033/t/100generic-zip.t x IO-Compress-2.033/t/Test/ x IO-Compress-2.033/t/Test/Builder.pm x IO-Compress-2.033/t/Test/More.pm x IO-Compress-2.033/t/Test/Simple.pm x IO-Compress-2.033/t/105oneshot-gzip-only.t x IO-Compress-2.033/t/108anyunc-transparent.t x IO-Compress-2.033/t/000prereq.t x IO-Compress-2.033/t/001zlib-generic-gzip.t x IO-Compress-2.033/t/105oneshot-zip-only.t x IO-Compress-2.033/t/104destroy-rawdeflate.t x IO-Compress-2.033/t/100generic-rawdeflate.t x IO-Compress-2.033/t/105oneshot-zip-bzip2-only.t x IO-Compress-2.033/t/002any-deflate.t x IO-Compress-2.033/t/compress/ x IO-Compress-2.033/t/compress/zlib-generic.pl x IO-Compress-2.033/t/compress/merge.pl x IO-Compress-2.033/t/compress/generic.pl x IO-Compress-2.033/t/compress/newtied.pl x IO-Compress-2.033/t/compress/tied.pl x IO-Compress-2.033/t/compress/any.pl x IO-Compress-2.033/t/compress/encode.pl x IO-Compress-2.033/t/compress/CompTestUtils.pm x IO-Compress-2.033/t/compress/multi.pl x IO-Compress-2.033/t/compress/oneshot.pl x IO-Compress-2.033/t/compress/destroy.pl x IO-Compress-2.033/t/compress/truncate.pl x IO-Compress-2.033/t/compress/prime.pl x IO-Compress-2.033/t/compress/anyunc.pl x IO-Compress-2.033/t/001bzip2.t x IO-Compress-2.033/t/101truncate-gzip.t x IO-Compress-2.033/t/104destroy-bzip2.t x IO-Compress-2.033/t/101truncate-zip.t x IO-Compress-2.033/t/104destroy-gzip.t x IO-Compress-2.033/t/106prime-bzip2.t x IO-Compress-2.033/t/103newtied-deflate.t x IO-Compress-2.033/t/cz-14gzopen.t x IO-Compress-2.033/t/01misc.t x IO-Compress-2.033/t/005defhdr.t x IO-Compress-2.033/t/105oneshot-deflate.t x IO-Compress-2.033/t/105oneshot-rawdeflate.t x IO-Compress-2.033/t/108anyunc-gzip.t x IO-Compress-2.033/t/110encode-zip.t x IO-Compress-2.033/t/109merge-zip.t x IO-Compress-2.033/t/102tied-gzip.t x IO-Compress-2.033/t/cz-05examples.t x IO-Compress-2.033/t/105oneshot-zip.t x IO-Compress-2.033/t/104destroy-deflate.t x IO-Compress-2.033/t/001zlib-generic-rawdeflate.t x IO-Compress-2.033/t/106prime-zip.t x IO-Compress-2.033/t/cz-03zlib-v1.t x IO-Compress-2.033/META.yml x IO-Compress-2.033/pod/ x IO-Compress-2.033/pod/FAQ.pod x IO-Compress-2.033/examples/ x IO-Compress-2.033/examples/io/ x IO-Compress-2.033/examples/io/bzip2/ x IO-Compress-2.033/examples/io/bzip2/bzgrep x IO-Compress-2.033/examples/io/bzip2/bzcat x IO-Compress-2.033/examples/io/bzip2/bzstream x IO-Compress-2.033/examples/io/gzip/ x IO-Compress-2.033/examples/io/gzip/gzstream x IO-Compress-2.033/examples/io/gzip/gzcat x IO-Compress-2.033/examples/io/gzip/gzgrep x IO-Compress-2.033/examples/io/gzip/gzappend x IO-Compress-2.033/examples/io/anycat x IO-Compress-2.033/examples/compress-zlib/ x IO-Compress-2.033/examples/compress-zlib/gzstream x IO-Compress-2.033/examples/compress-zlib/filtinf x IO-Compress-2.033/examples/compress-zlib/filtdef x IO-Compress-2.033/examples/compress-zlib/gzcat x IO-Compress-2.033/examples/compress-zlib/gzgrep</readmore> CPAN: File::Temp loaded ok (v0.20) CPAN.pm: Going to build P/PM/PMQS/IO-Compress-2.033.tar.gz Up/Downgrade not needed. Checking if your kit is complete... Looks good Warning: prerequisite Compress::Raw::Bzip2 2.033 not found. Warning: prerequisite Compress::Raw::Zlib 2.033 not found. Writing Makefile for IO::Compress ---- Unsatisfied dependencies detected during ---- ---- PMQS/IO-Compress-2.033.tar.gz ---- Compress::Raw::Bzip2 [requires] Compress::Raw::Zlib [requires] Shall I follow them and prepend them to the queue of modules we are processing right now? [yes] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'Compress::Raw::Bzip2' Running make for P/PM/PMQS/Compress-Raw-Bzip2-2.033.tar.gz CPAN: LWP::UserAgent loaded ok (v5.829) Fetching with LWP: ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/P/PM/PMQS/Compress-Raw +-Bzip2-2.033.tar.gz LWP failed with code[500] message[Undefined subroutine &version::_VERS +ION called at /opt/local/lib/perl5/5.8.9/Net/FTP.pm line 17. BEGIN failed--compilation aborted at /opt/local/lib/perl5/5.8.9/Net/FT +P.pm line 17. Compilation failed in require at /opt/local/lib/perl5/site_perl/5.8.9/ +LWP/Protocol/ftp.pm line 21. ] Fetching with Net::FTP: ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/P/PM/PMQS/Compress-Raw +-Bzip2-2.033.tar.gz Catching error: "Can't locate object method \"new\" via package \"Net: +:FTP\" at /opt/local/lib/perl5/5.8.9/CPAN/FTP.pm line 212.\cJ" at /op +t/local/lib/perl5/5.8.9/CPAN.pm line 391 CPAN::shell() called at -e line 1

In reply to trouble with CPAN installing stuff: LWP 500 error by markhunnibell

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.