On Tue, Nov 13, 2007 at 12:15:47PM -0500, David Golden wrote:
> Without delving closer into the specifics, you have two issues that
> need to be separated:
> (a) needing DBI to be installed to work at all
> (b) needing to get information out of DBI for use in the make process
> How do other DBD modules handle it? Or do they all just live with failures?
I suggest replacing these lines in Makefile.PL:
use DBI 1.21;
use DBI::DBD;
with:
eval 'use DBI 1.21;use DBI::DBD' || eval q{
use CPAN;
CPAN::Shell->install("DBI");
};
eval 'use DBI 1.21;use DBI::DBD' || do {
warn("Couldn't install DBI for some reason\n");
exit 0;
};
Yes, it's ugly as hell :-)
--
David Cantrell | Hero of the Information Age
"The whole aim of practical politics is to keep the populace alarmed
(and hence clamorous to be led to safety) by menacing it with an
endless series of hobgoblins, all of them imaginary" -- H. L. Mencken