Hallo Fellow Monks,

I'm trying to get back to being a reasonably effective Perl user at work, which is difficult since much of my work lately has involved, well ... other things.

I've installed my own local copy of perlbrew (so as to have a Perl playground) and I've got a number of Perl versions installed underneath that. Now, perhaps I've forgotten something vital, but I feel anyway as though weird things are happening when I try to install modules with cpanm. I've been getting a lot of this sort of thing lately:

bash-4.1$ cpanm Getopt::Lucid; --> Working on Getopt::Lucid Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Getopt-Lucid-1.0 +8.tar.gz ... OK Configuring Getopt-Lucid-1.08 ... OK ==> Found dependencies: Exception::Class::TryCatch --> Working on Exception::Class::TryCatch Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Exception-Class- +TryCatch-1.13.tar.gz ... OK Configuring Exception-Class-TryCatch-1.13 ... OK Building and testing Exception-Class-TryCatch-1.13 ... OK Successfully installed Exception-Class-TryCatch-1.13 ! Installing the dependencies failed: Module 'Exception::Class::TryCat +ch' is not installed ! Bailing out the installation for Getopt-Lucid-1.08. 1 distribution installed bash-4.1$ cpanm Exception::Class::TryCatch; --> Working on Exception::Class::TryCatch Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Exception-Class- +TryCatch-1.13.tar.gz ... OK Configuring Exception-Class-TryCatch-1.13 ... OK Building and testing Exception-Class-TryCatch-1.13 ... OK Successfully installed Exception-Class-TryCatch-1.13 1 distribution installed bash-4.1$ cpanm Getopt::Lucid; --> Working on Getopt::Lucid Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Getopt-Lucid-1.0 +8.tar.gz ... OK Configuring Getopt-Lucid-1.08 ... OK ==> Found dependencies: Exception::Class::TryCatch --> Working on Exception::Class::TryCatch Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Exception-Class- +TryCatch-1.13.tar.gz ... OK Configuring Exception-Class-TryCatch-1.13 ... OK Building and testing Exception-Class-TryCatch-1.13 ... OK Successfully installed Exception-Class-TryCatch-1.13 ! Installing the dependencies failed: Module 'Exception::Class::TryCat +ch' is not installed ! Bailing out the installation for Getopt-Lucid-1.08. 1 distribution installed

Unless I'm being very stupid, that's me trying to install Getopt::Lucid, with cpanm finding a dependency (Exception::Class::TryCatch) and installing it (apparently successfully) then failing because it can't find that same dependency -- after which I install the dependency by itself, which succeeds (again); however, when I then try to install Getopt::Lucid, the install fails again because of the same dependency which I thought I had successfully installed (perhaps twice).

It could be that I'm just tired, but what could be wrong here? The behavior does not make sense to me.

A tired old f*rt,

Glenn


In reply to flummoxed by cpanm behavior (re: dependencies by chexmix

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.