Xiong has asked for the wisdom of the Perl Monks concerning the following question:

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

Replies are listed 'Best First'.
Re: cpanp prerequisite DBI
by Anonymous Monk on Feb 28, 2010 at 02:04 UTC
    Exit the cpanp shell, check   /lab/cpanplus/install-logs/DBI-1.609-1267307676.log, make sure you have the latest ExtUtils-MakeMaker/CPANPLUS... then
    $ cpanp i DBI $ cpanp i DBIx::Simple