in reply to Trouble with CPAN on Slax

You have carefully elided both parts of information that would help us diagnose the Perl part of your question. Please provide us with the exact error message, preferrably including the module name that fails (for example, Test::Yaml), the module you were trying to install, and @INC as printed by Perl.

There are broken module distributions that don't list all modules they need. For exmample, the test suite for some module might rely on Test::YAML without declaring so. Then you would see this failure. The CPAN Testers Website collects the test results of all CPAN module and maybe can tell you more about the status of the various modules.

Google tells me this failure report when looking for "can't locate test/yaml.pm".

Replies are listed 'Best First'.
Re^2: Trouble with CPAN on Slax
by gwhite (Friar) on Jan 08, 2009 at 18:04 UTC
    cpan[9]> install Test::YAML Running install for module 'Test::YAML' Running make for I/IN/INGY/YAML-0.68.tar.gz Has already been unwrapped into directory /root/.cpan/build/YAML-0.6 +8-hUwo0h Has already been made Running make test PERL_DL_NONLAZY=1 /usr/bin/perl5.10.0 "-MExtUtils::Command::MM" "-e" " +test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/2-scalars..........Can't locate YAML/Base.pm in @INC (@INC contains: + /root/.cpan/build/YAML-0.68-hUwo0h/inc /root/.cpan/build/YAML-0.68-h +Uwo0h/blib/lib /root/.cpan/build/YAML-0.68-hUwo0h/blib/arch /usr/lib/ +perl5/5.10.0/i486-linux-thread-multi /usr/lib/perl5/5.10.0/i486-linux +-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/i +486-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0/i486-linux-thr +ead-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/site_perl/5. +10.0/i486-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib +/perl5/site_perl /usr/lib/perl5/vendor_perl/5.10.0/i486-linux-thread- +multi /usr/lib/perl5/vendor_perl/5.10.0/i486-linux-thread-multi /usr/ +lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i486-l +inux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/ve +ndor_perl . /usr/lib/perl5/5.10.0/i486-linux-thread-multi /usr/lib/pe +rl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/i486-linux-thread-multi /u +sr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/site_perl /usr/lib/perl5 +/vendor_perl/5.10.0/i486-linux-thread-multi /usr/lib/perl5/vendor_per +l/5.10.0 /usr/lib/perl5/vendor_perl .) at /root/.cpan/build/YAML-0.68 +-hUwo0h/blib/lib/YAML.pm line 3. BEGIN failed--compilation aborted at /root/.cpan/build/YAML-0.68-hUwo0 +h/blib/lib/YAML.pm line 3. Compilation failed in require at t/2-scalars.t line 5. # Looks like your test died before it could output anything.

    and

    cpan[15]> install Text::Template Running install for module 'Text::Template' 'YAML' not installed, falling back to Data::Dumper and Storable to rea +d prefs '/root/.cpan/prefs' Running make for M/MJ/MJD/Text-Template-1.45.tar.gz LWP not available Fetching with Net::FTP: ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/M/MJ/MJD/Text-Template +-1.45.tar.gz LWP not available Fetching with Net::FTP: ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/M/MJ/MJD/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/M/MJ/MJD/Text-Template-1.4 +5.tar.gz ok Text-Template-1.45/ Text-Template-1.45/README Text-Template-1.45/META.yml Text-Template-1.45/COPYING Text-Template-1.45/MANIFEST Text-Template-1.45/INSTALL Text-Template-1.45/Makefile.PL Text-Template-1.45/lib/ Text-Template-1.45/lib/Text/ Text-Template-1.45/lib/Text/Template.pm Text-Template-1.45/lib/Text/Template/ Text-Template-1.45/lib/Text/Template/Preprocess.pm Text-Template-1.45/t/ Text-Template-1.45/t/02-hash.t Text-Template-1.45/t/06-ofh.t Text-Template-1.45/t/01-basic.t Text-Template-1.45/t/00-version.t Text-Template-1.45/t/10-delimiters.t Text-Template-1.45/t/07-safe3.t Text-Template-1.45/t/03-out.t Text-Template-1.45/t/12-preprocess.t Text-Template-1.45/t/05-safe2.t Text-Template-1.45/t/14-broken.t Text-Template-1.45/t/09-error.t Text-Template-1.45/t/04-safe.t Text-Template-1.45/t/08-exported.t Text-Template-1.45/t/13-taint.t Text-Template-1.45/t/11-prepend.t Text-Template-1.45/Artistic Warning (usually harmless): 'YAML' not installed, will not store persi +stent state CPAN.pm: Going to build M/MJ/MJD/Text-Template-1.45.tar.gz Checking if your kit is complete... Warning: the following files are missing in your kit: lib/Text/Template.pm lib/Text/Template/Preprocess.pm t/00-version.t t/01-basic.t t/02-hash.t t/03-out.t t/04-safe.t t/05-safe2.t t/06-ofh.t t/07-safe3.t t/08-exported.t t/09-error.t t/10-delimiters.t t/11-prepend.t t/12-preprocess.t t/13-taint.t t/14-broken.t Please inform the author. Writing Makefile for Text::Template Could not read '/root/.cpan/build/Text-Template-1.45-yp24Uz/META.yml'. + Falling back to other methods to determine prerequisites MJD/Text-Template-1.45.tar.gz /usr/bin/make -- OK Warning (usually harmless): 'YAML' not installed, will not store persi +stent state Running make test PERL_DL_NONLAZY=1 /usr/bin/perl5.10.0 "-MExtUtils::Command::MM" "-e" " +test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-version.......Can't locate Text/Template.pm in @INC (@INC contain +s: /root/.cpan/build/Text-Template-1.45-yp24Uz/blib/lib /root/.cpan/b +uild/Text-Template-1.45-yp24Uz/blib/arch /usr/lib/perl5/5.10.0/i486-l +inux-thread-multi /usr/lib/perl5/5.10.0/i486-linux-thread-multi /usr/ +lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/i486-linux-thread-mu +lti /usr/lib/perl5/site_perl/5.10.0/i486-linux-thread-multi /usr/lib/ +perl5/site_perl/5.10.0 /usr/lib/perl5/site_perl/5.10.0/i486-linux-thr +ead-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/site_perl /u +sr/lib/perl5/vendor_perl/5.10.0/i486-linux-thread-multi /usr/lib/perl +5/vendor_perl/5.10.0/i486-linux-thread-multi /usr/lib/perl5/vendor_pe +rl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i486-linux-thread-multi / +usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl . /usr/li +b/perl5/5.10.0/i486-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib +/perl5/site_perl/5.10.0/i486-linux-thread-multi /usr/lib/perl5/site_p +erl/5.10.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.10.0 +/i486-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/p +erl5/vendor_perl .) at t/00-version.t line 3. BEGIN failed--compilation aborted at t/00-version.t line 3.

    HTML::Entities also fails, HTML::Parser

    g_White

      This indicates that something is broken with your installation of Slax:

      Warning: the following files are missing in your kit: lib/Text/Template.pm

      ... because lib/Text/Template.pm certainly is in the tarfile of the distribution. Maybe Slax uses a weird umask or has some other permission things, like SELinux but broken in a different way?

        Im not agree with you. I have the same problem but I found in all cases the Make:Maker cant read well the Manifest files, and was making several test with several packages on slax using cpan or downloading the tar.gz package and traying run the Makefile.Pl but it cant process folders on the buil makefile process, it make problems with it tray to run make test and make install process Im try to install the modules manually.