Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Trouble with CPAN on Slax

by gwhite (Friar)
on Jan 08, 2009 at 16:47 UTC ( #734944=perlquestion: print w/replies, xml ) Need Help??
gwhite has asked for the wisdom of the Perl Monks concerning the following question:

I have setup a Slax OS with Perl 5.10 on a USB thumb drive. I boot to it, then run CPAN and on a large number of modules, but not all, while trying to install I get something along the line of:

t/test...Can't locate somedir/ in @INC (@INC contains:....very long list)

In the instances that I have manually monitored it will be something like Test/ that fails (in other words a subdirectory/module name) that creates this error. And that file will not be in the location that CPAN thinks it should be.

I have Perl 5.8 on several other boxes and all is going well with these same modules, does anyone know is this a CPAN configuration problem, a Perl 5.10 issue or just a Slax problem.


Replies are listed 'Best First'.
Re: Trouble with CPAN on Slax
by Corion (Pope) on Jan 08, 2009 at 17:43 UTC

    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/".

      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/ 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/ line 3. BEGIN failed--compilation aborted at /root/.cpan/build/YAML-0.68-hUwo0 +h/blib/lib/ line 3. Compilation failed in require at t/2-scalars.t line 5. # Looks like your test died before it could output anything.


      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: +-1.45.tar.gz LWP not available Fetching with Net::FTP: 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/ Text-Template-1.45/lib/Text/Template/ Text-Template-1.45/lib/Text/Template/ 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 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/ lib/Text/Template/ 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/ 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


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

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

        ... because lib/Text/ 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?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://734944]
Approved by Old_Gray_Bear
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2018-05-23 06:16 GMT
Find Nodes?
    Voting Booth?