Subject: | DBD::SQLite Makefile.PL fails if no DBD |
Trying to build DBD::SQLite (1.07) against a fresh perl fails:
CPAN.pm: Going to build M/MS/MSERGEANT/DBD-SQLite-1.07.tar.gz
Checking if your kit is complete...
Looks good
Warning: prerequisite DBI 1.21 not found.
Undefined subroutine &DBI::DBD::dbd_postamble called at Makefile.PL line 58.
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
The problem seems to be this section of Makefile.PL, which naïvely assumes that DBI is already installed. I think that you need to check that the sub is defined before calling it.
package MY;
sub postamble {
DBI::DBD::dbd_postamble(@_);
}