Stereonaut!

notest from CPAN::Shell
~ Sep 15, 2009

with 3 comments

I implemented a simple dependencies installer for the new Planeta Linux. I spent some time trying to find how to make CPAN::Shell::install to install modules without running the test units, it's quite simple.

CPAN::Shell->rematein("notest", "install", $module);

Kudos to mst for the pointer.

Written by David Moreno

September 15th, 2009 at 10:11 am

Categorized in: perl, planeta linux

Tagged with , ,

3 Responses to 'notest from CPAN::Shell'

Subscribe to comments with RSS or TrackBack to 'notest from CPAN::Shell'.

  1. I'd have suggested:

    CPAN::Shell->notest("install", $module);

    The rematein() method is considered internal (and is undocumented).

    Andreas Koenig

    16 Sep 09 at 12:03 am

  2. I have the same problem, trying to install a module from perl and without running tests. The solution you posted does not work for me, it says

    Can't locate object method "notest" via package "CPAN::Module" at /usr/lib/perl5/5.8.8/CPAN.pm line 2137, line 61065.

    I am using perl 5.8.8

    Do you have another solution?

    cserpell

    1 Mar 10 at 3:37 pm

  3. What CPAN.pm version are you using?


    ~ $ perl -MCPAN -e 'print $CPAN::VERSION, "\n";'
    1.9402

    David Moreno

    1 Mar 10 at 3:51 pm

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes