Subject: | Error message when CPAN "install" command: Too early to specify a build action 'Build'. Do 'Build Build' instead. |
I recently released my module "Courier::Filter" to CPAN. When trying to install on a system using the CPAN "install" command, I get this:
----------------------------------------------------------------------
perl -MCPAN -e 'install Courier::Filter'
CPAN.pm: Going to build
J/JM/JMEHNLE/courier-filter/Courier-Filter-0.11.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for CourierFilter
cp lib/Courier/Filter/Module/DNSBL.pm
blib/lib/Courier/Filter/Module/DNSBL.pm
cp lib/Courier/Filter/Logger/Syslog.pm
blib/lib/Courier/Filter/Logger/Syslog.pm
cp lib/Courier/Filter.pm blib/lib/Courier/Filter.pm
cp lib/Courier/Filter/Module/MIMEParts.pm
blib/lib/Courier/Filter/Module/MIMEParts.pm
cp lib/Courier/Filter/Module/SPF.pm blib/lib/Courier/Filter/Module/SPF.pm
cp lib/Courier/Filter/Overview.pod blib/lib/Courier/Filter/Overview.pod
cp lib/Courier/Filter/Module/Header.pm
blib/lib/Courier/Filter/Module/Header.pm
cp lib/Courier/Filter/Logger/IOHandle.pm
blib/lib/Courier/Filter/Logger/IOHandle.pm
cp lib/Courier/Filter/Logger/File.pm blib/lib/Courier/Filter/Logger/File.pm
cp lib/Courier/Message.pm blib/lib/Courier/Message.pm
cp lib/Courier/Error.pm blib/lib/Courier/Error.pm
cp lib/Courier/Filter/Module.pm blib/lib/Courier/Filter/Module.pm
cp lib/Courier/Config.pm blib/lib/Courier/Config.pm
cp lib/Courier/Filter/Logger.pm blib/lib/Courier/Filter/Logger.pm
Manifying blib/man3/Courier::Filter::Logger::Syslog.3
Manifying blib/man3/Courier::Filter::Module::DNSBL.3
Manifying blib/man3/Courier::Filter::Module::SPF.3
Manifying blib/man3/Courier::Filter::Module::MIMEParts.3
Manifying blib/man3/Courier::Filter.3
Manifying blib/man3/Courier::Filter::Logger::File.3
Manifying blib/man3/Courier::Filter::Logger::IOHandle.3
Manifying blib/man3/Courier::Filter::Module::Header.3
Manifying blib/man3/Courier::Filter::Overview.3
Manifying blib/man3/Courier::Message.3
Manifying blib/man3/Courier::Error.3
Manifying blib/man3/Courier::Config.3
Manifying blib/man3/Courier::Filter::Module.3
Manifying blib/man3/Courier::Filter::Logger.3
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" Build.PL Build
Too early to specify a build action 'Build'. Do 'Build Build' instead.
make: *** [Build] Error 9
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
----------------------------------------------------------------------
I'm using Perl 5.8.2, CPAN 1.7601, and Module::Build 0.23 (on a freshly installed Debian/testing system). And I can't figure out what I am doing wrong.
Here's my module:
http://www.cpan.org/authors/id/J/JM/JMEHNLE/courier-filter/Courier-Filter-0.11.tar.gz