Gokee2 has asked for the wisdom of the Perl Monks concerning the following question:

Hello all,

Cpan seems to be broken on my Debian Lenny system that uses perl 5.10.0-11.1. I am trying to install HTML::Tidy and cpan fails:
CPAN: Storable loaded ok (v2.18) Going to read /root/.cpan/Metadata Database was generated on Sun, 03 Aug 2008 03:02:48 GMT CPAN: LWP::UserAgent loaded ok (v5.814) CPAN: Time::HiRes loaded ok (v1.9715) I would like to connect to one of the following sites to get 'authors/ +01mailrc.txt.gz': http://www.perl.org/CPAN/ ftp://ftp.perl.org/pub/CPAN/ Is it OK to try to connect to the Internet? [yes] Fetching with LWP: http://www.perl.org/CPAN/authors/01mailrc.txt.gz CPAN: YAML loaded ok (v0.66) Going to read /root/.cpan/sources/authors/01mailrc.txt.gz ...................................................................... +......DONE Fetching with LWP: http://www.perl.org/CPAN/modules/02packages.details.txt.gz Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Mon, 04 Aug 2008 15:02:46 GMT ...................................................................... +......DONE Fetching with LWP: http://www.perl.org/CPAN/modules/03modlist.data.gz Going to read /root/.cpan/sources/modules/03modlist.data.gz ...................................................................... +......DONE Going to write /root/.cpan/Metadata Running install for module 'HTML::Tidy' Running make for P/PE/PETDANCE/HTML-Tidy-1.08.tar.gz CPAN: Digest::SHA loaded ok (v5.47) Checksum for /root/.cpan/sources/authors/id/P/PE/PETDANCE/HTML-Tidy-1. +08.tar.gz ok HTML-Tidy-1.08/ HTML-Tidy-1.08/lib/ HTML-Tidy-1.08/lib/HTML/ HTML-Tidy-1.08/lib/HTML/Tidy/ HTML-Tidy-1.08/lib/HTML/Tidy/Message.pm HTML-Tidy-1.08/lib/HTML/Tidy.pm HTML-Tidy-1.08/t/ HTML-Tidy-1.08/t/opt-00.t HTML-Tidy-1.08/t/cfg-for-parse.cfg HTML-Tidy-1.08/t/simple.t HTML-Tidy-1.08/t/segfault-form.t HTML-Tidy-1.08/t/wordwrap.cfg HTML-Tidy-1.08/t/roundtrip.t HTML-Tidy-1.08/t/too-many-titles.t HTML-Tidy-1.08/t/cfg-for-parse.t HTML-Tidy-1.08/t/wordwrap.t HTML-Tidy-1.08/t/venus.cfg HTML-Tidy-1.08/t/unicode.html HTML-Tidy-1.08/t/pod-coverage.t HTML-Tidy-1.08/t/00-load.t HTML-Tidy-1.08/t/levels.t HTML-Tidy-1.08/t/unicode.t HTML-Tidy-1.08/t/pod.t HTML-Tidy-1.08/t/extra-quote.t HTML-Tidy-1.08/t/ignore-text.t HTML-Tidy-1.08/t/ignore.t HTML-Tidy-1.08/t/venus.t HTML-Tidy-1.08/t/version.t HTML-Tidy-1.08/t/clean-crash.t HTML-Tidy-1.08/t/perfect.t HTML-Tidy-1.08/t/venus.html HTML-Tidy-1.08/t/message.t HTML-Tidy-1.08/Changes HTML-Tidy-1.08/Tidy.xs HTML-Tidy-1.08/MANIFEST HTML-Tidy-1.08/bin/ HTML-Tidy-1.08/bin/webtidy HTML-Tidy-1.08/perlcriticrc HTML-Tidy-1.08/ppport.h HTML-Tidy-1.08/README HTML-Tidy-1.08/Makefile.PL HTML-Tidy-1.08/META.yml CPAN: File::Temp loaded ok (v0.20) CPAN.pm: Going to build P/PE/PETDANCE/HTML-Tidy-1.08.tar.gz Checking if your kit is complete... Looks good Writing Makefile for HTML::Tidy cp lib/HTML/Tidy/Message.pm blib/lib/HTML/Tidy/Message.pm cp lib/HTML/Tidy.pm blib/lib/HTML/Tidy.pm /usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp -typemap /usr/shar +e/perl/5.10/ExtUtils/typemap Tidy.xs > Tidy.xsc && mv Tidy.xsc Tidy. +c cc -c -I. -I/usr/include/tidy -I/usr/local/include/tidy -I/sw/include +/tidy -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe +-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 - +g -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC "-I/usr/lib/perl/5 +.10/CORE" Tidy.c Running Mkbootstrap for HTML::Tidy () chmod 644 Tidy.bs rm -f blib/arch/auto/HTML/Tidy/Tidy.so LD_RUN_PATH="/usr/lib" cc -shared -O2 -g -L/usr/local/lib Tidy.o -o +blib/arch/auto/HTML/Tidy/Tidy.so \ -ltidy \ chmod 755 blib/arch/auto/HTML/Tidy/Tidy.so cp Tidy.bs blib/arch/auto/HTML/Tidy/Tidy.bs chmod 644 blib/arch/auto/HTML/Tidy/Tidy.bs cp bin/webtidy blib/script/webtidy /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/webti +dy Manifying blib/man3/HTML::Tidy::Message.3pm Manifying blib/man3/HTML::Tidy.3pm PETDANCE/HTML-Tidy-1.08.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load............ok t/cfg-for-parse......ok t/clean-crash........ok t/extra-quote........ok t/ignore-text........ok t/ignore.............ok t/levels.............ok t/message............ok t/opt-00.............ok t/perfect............ Failed 1/3 subtests t/pod-coverage.......skipped: Test::Pod::Coverage 1.04 required for te +sting POD coverage t/pod................ok t/roundtrip..........ok t/segfault-form......ok t/simple.............1/4 Unknown error type: line 2 column 5 - Info: < +body> previously mentioned at t/simple.t line 17 Unknown error type: line 2 column 5 - Info: <body> previously mentione +d at t/simple.t line 17 Unknown error type: line 2 column 5 - Info: <body> previously mentione +d at t/simple.t line 17 t/simple.............ok t/too-many-titles....1/3 Unknown error type: line 4 column 9 - Info: < +head> previously mentioned at t/too-many-titles.t line 22 t/too-many-titles....ok t/unicode............ Failed 1/7 subtests t/venus..............1/3 Unknown error type: line 8 column 2 - Info: < +h1> previously mentioned at t/venus.t line 21 Unknown error type: line 10 column 2 - Info: <h1> previously mentioned + at t/venus.t line 21 Unknown error type: line 11 column 2 - Info: <h1> previously mentioned + at t/venus.t line 21 Unknown error type: line 12 column 2 - Info: <h1> previously mentioned + at t/venus.t line 21 Unknown error type: line 15 column 2 - Info: <h2> previously mentioned + at t/venus.t line 21 Unknown error type: line 17 column 2 - Info: <h4> previously mentioned + at t/venus.t line 21 Unknown error type: line 18 column 2 - Info: <h4> previously mentioned + at t/venus.t line 21 Unknown error type: line 20 column 2 - Info: <h4> previously mentioned + at t/venus.t line 21 Unknown error type: line 25 column 3 - Info: <h4> previously mentioned + at t/venus.t line 21 t/venus..............ok t/version............ok t/wordwrap...........1/2 Unknown error type: line 1 column 1 - Info: < +head> previously mentioned at t/wordwrap.t line 35 t/wordwrap...........ok Test Summary Report ------------------- t/perfect (Wstat: 11 Tests: 2 Failed: 0) Parse errors: Bad plan. You planned 3 tests but ran 2. t/unicode (Wstat: 11 Tests: 6 Failed: 0) Parse errors: Bad plan. You planned 7 tests but ran 6. Files=20, Tests=76, 2 wallclock secs ( 0.10 usr 0.01 sys + 1.25 cus +r 0.16 csys = 1.52 CPU) Result: FAIL Failed 2/20 test programs. 0/76 subtests failed. make: *** [test_dynamic] Error 255 PETDANCE/HTML-Tidy-1.08.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports PETDANCE/HTML-Tidy-1.08.tar.gz Running make install make test had returned bad status, won't install without force
Also cpan -O gives out some nasty output:
CPAN: Storable loaded ok (v2.18) Going to read /root/.cpan/Metadata Database was generated on Mon, 04 Aug 2008 15:02:46 GMT Module Name Local CPAN ---------------------------------------------------------------------- +--- Could not eval ' package ExtUtils::MakeMaker::_version; no strict; BEGIN { eval { # Ensure any version() routine which might have leaked # into this package has been deleted. Interferes with # version->import() undef *version; require version; "version"->import; } } local $mod_perl::VERSION; $mod_perl::VERSION=undef; do { if ( $mod_perl::VERSION >= 1.999022 ) { # mod_perl + 2.0.0 RC5 }; $mod_perl::VERSION; ' in /usr/share/perl5/Authen/Simple/Apache.pm: Missing right c +urly or square bracket at (eval 33) line 20, at end of line syntax error at (eval 33) line 20, at EOF Catalyst::Authentication::Credential::Authen::Simple 0.0100 0.0200 Geo::IP 1.3100 1.3300 IO::Zlib 1.0700 1.0900 Image::Magick 6.3000 6.0040 Net::Daemon 0.3800 0.4300 Net::Daemon::Test 0.0200 0.0300 Purple 0.0100 1.0000 RPC::PlClient 0.2017 0.2020 RPC::PlServer 0.2017 0.2020 RPC::PlServer::Comm 0.1002 0.1003 SDL 1.2000 2.0010 SelfLoader 1.1500 1.1600
Any idea whats wrong?

Thanks,
Gokee2

Replies are listed 'Best First'.
Re: cpan broken?
by FunkyMonk (Bishop) on Aug 04, 2008 at 20:18 UTC
    You've got two unrelated issues I think.

    If you look at http://testers.cpan.org/show/HTML-Tidy.html you'll see HTML::Tidy is getting a lot of FAIL results.

    I'm not sure what's up with Authen::Simple. I get the same error from cpan -O as you, but it shouldn't stop you from performing any other cpan operations

    Since you've got perl 5.10.0 installed, why not use cpanp instead of cpan? At least it doesn't complain about Authen::Simple.

      I have never heard of cpanp before. Is it better? Looks like I can`t just say cpanp HTML::Tidy to try and install...

      Hmm interesting with the testers thing. If I use the -f switch to install tidy will tidy not work or would it be ok?

      Thanks!
        cpanp is the new, improved cpan but there is little difference in use. To install a package use

        cpanp i HTML::Tidy

        or

        cpanp t HTML::Tidy

        just to download and test it.

        I'm fairly confident that HTML::Tidy won't work though. There's a bunch of errors being reported in the author's XS code so forcing an install isn't going to work.