Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Installing IO::All fails

by karlgoethebier (Vicar)
on Jan 10, 2013 at 17:31 UTC ( #1012708=perlquestion: print w/ replies, xml ) Need Help??
karlgoethebier has asked for the wisdom of the Perl Monks concerning the following question:

Hi, i tried to install IO::All using perlbrew and cpanm.

It fails. Here is some information about what i did a.s.o...

Karls-Mac-mini:~ karl$ cpanm -V cpanm (App::cpanminus) version 1.5019 Karls-Mac-mini:~ karl$ perlbrew list * perl-5.16.2 Karls-Mac-mini:~ karl$ which perl /Users/Karl/perl5/perlbrew/perls/perl-5.16.2/bin/perl Karls-Mac-mini:~ karl$ cpanm MLDBM MLDBM is up to date. (2.04)

cpanm output about the failed tests:

t/assert2.t .......... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/4 subtests

assert2.t

use lib 't', 'lib'; use strict; use warnings; use Test::More tests => 4; use IO::All; use IO_All_Test; ok(io('t/output/xxx/yyy/zzz.db')->dbm->assert->{foo} = "bar"); ok(-f 't/output/xxx/yyy/zzz.db' or -f 't/output/xxx/yyy/zzz.db.dir'); SKIP: { skip "requires MLDBM", 2 unless eval { require MLDBM; 1}; ok(io('t/output/xxx/yyy/zzz2.db')->assert->mldbm->{foo} = ["bar"]) +; ok(-f 't/output/xxx/yyy/zzz2.db' or -f 't/output/xxx/yyy/zzz.db.di +r'); }

How can i fix this without --force?

Thank you very much for help and best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Comment on Installing IO::All fails
Select or Download Code
Re: Installing IO::All fails
by sth (Priest) on Jan 10, 2013 at 21:59 UTC
    I haven't used cpanm, but there must be a way to turn on VERBOSE for a more detailed error message. When I have issues with module builds, I will cd to the build directory and run  make test TEST_VERBOSE=1' . If there are a lot of test in the t directory, I might even debug the single test.  perl -Mblib -d t/sometest.t Some tests will fail and if I determine that is not an issue in my env I will force an install. I often do this with DBD::Oracle. Not a direct answer, just thought I'd give you some debugging options.

      ...i bet a sixpack that i will be punished for posting this:

      I think this doesn't help. Thank you and regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

Re: Installing IO::All fails (:tell it to the author:)
by Anonymous Monk on Jan 11, 2013 at 02:34 UTC

    How can i fix this without --force?

    :) I usually ask the author (report bug upstream)

Re: Installing IO::All fails
by stefbv (Deacon) on Jan 11, 2013 at 16:25 UTC

    Try cpan, I encountered modules that failed to install with cpanm but succeeded with cpan.

    Regards, Ștefan

      "Try cpan..."

      ...i just had the same idea. It fails too.

      Update:...there are often to much presuppositions in my posts ;-)

      Perhaps the better question should have been: "...does it fail because i'm using cpanm...?"

      Thank you and best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1012708]
Approved by toolic
Front-paged by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2015-07-03 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (54 votes), past polls