Is this a short between my headphones or someone else's? Severely abridged:

xiong@oz:/$ /lab/bin/cpanp Can't locate DBIx/Simple.pm in @INC (@INC contains: /lab/lib/perl5 /lab/lib/perl5 .) at /lab/lib/perl5/CPANPLUS/Internals/Source/SQLite.pm line 13. BEGIN failed--compilation aborted... ... [MSG] Falling back to CPANPLUS::Internals::Source::Memory ... CPAN Terminal> i DBIx::Simple Installing DBIx::Simple (1.32) Running [/lab/bin/perl /usr/bin/cpanp-run-perl /lab/cpanplus/5.10.1/bu +ild/DBIx-Simple-1.32/Makefile.PL LIB=/lab/lib INSTALLMAN1DIR=/lab/man +/man1 INSTALLMAN3DIR=/lab/man/man3]... Warning: prerequisite DBI 1.21 not found. ... [ERROR] Failed to install 'DBI' as prerequisite for 'DBIx::Simple' ... Error installing 'DBIx::Simple'

So, I go around again:

CPAN Terminal> i DBI Installing DBI (1.609) *** Install log written to: /lab/cpanplus/install-logs/DBI-1.609-1267307676.log Module 'DBI' installed successfully No errors installing all modules CPAN Terminal>

However, DBIx::Simple still won't install, and for exactly the same reasons.

Now, I realize that some DBD is required by DBI; but this isn't the reported failure point, is it? I can't tell if DBIx::Simple isn't demanding the correct dependencies; cpanp isn't looking in the same place for modules that it's building them into; or I'm seconds away from a duh moment.

On a minor note, as you see, I built development perl such that all modules should be stored in one path, which is somehow duplicated in @INC. Can I remove this duplication after the fact or should I care?

Update:

The install log contains:

[MSG] [Sat Feb 27 13:54:36 2010] Module 'DBI' already up to date, won' +t install without force

ExtUtils::MakeMaker is up to date.

Still no joy.

Final update (this node is now dead):

The correct answer is duh. I have (as you see above) set up perl so that @INC contains only /lab/lib/perl5 (twice, annoyingly) and of course .. But I had configured cpanp to build into /lab/lib. As they might say on Fark, "erroyality ensues."


In reply to cpanp prerequisite DBI by Xiong

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.