Skip Menu |
 

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 5415
Status: resolved
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: julian [...] mehnle.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.23
Fixed in: (no value)



Subject: Error message when CPAN "install" command: Too early to specify a build action 'Build'. Do 'Build Build' instead.
Download (untitled) / with headers
text/plain 2.6k
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
From: julian [...] mehnle.net
Download (untitled) / with headers
text/plain 826b
[JMEHNLE - Sun Feb 22 20:25:20 2004]: Show quoted text
> I recently released my module "Courier::Filter" to CPAN. When trying > to install on a system using the CPAN "install" command, I get this: > > ---------------------------------------------------------------------- > [...] > /usr/bin/perl "-Iblib/arch" "-Iblib/lib" Build.PL Build > Too early to specify a build action 'Build'. Do 'Build Build' > instead. > [...] > ----------------------------------------------------------------------
The only thing relevant to this error message I could find using Google is this: http://66.102.11.104/search?q=cache:I-vaZSFl324J:www.mail-archive.com/module-authors%40perl.org/msg00162.html+%22Too+early+to+specify+a+build+action+build%22&hl=en&ie=UTF-8 (or, as a short URI, if the bugtracker doesn't grok the long one:) http://tinyurl.com/2rrdn
Date: Sun, 22 Feb 2004 21:55:04 -0600
From: "Ken Williams" <ken [...] mathforum.org>
To: bug-Module-Build [...] rt.cpan.org
Subject: Re: [cpan #5415] Error message when CPAN "install" command: Too early to specify a build action 'Build'. Do 'Build Build' instead.
RT-Send-Cc:
Download (untitled) / with headers
text/plain 266b
Hi Julian, The way to solve this problem is to put the following in your Makefile.PL: PL_FILES => {}, Otherwise MakeMaker thinks the Build.PL script is something it's supposed to run. I'll add something about this to the Module::Build::Compat docs. -Ken
From: julian [...] mehnle.net
Download (untitled) / with headers
text/plain 348b
[ken@mathforum.org - Sun Feb 22 22:55:09 2004]: Show quoted text
> The way to solve this problem is to put the following in your > Makefile.PL: > > PL_FILES => {},
I don't have a Makefile.PL. Do I absolutely need one to make installation via the CPAN shell work? I thought recent versions of the CPAN shell would support Module::Build-based packages as well?
Date: Mon, 23 Feb 2004 09:27:47 -0600
Subject: Re: [cpan #5415] Error message when CPAN "install" command: Too early to specify a build action 'Build'. Do 'Build Build' instead.
From: Ken Williams <ken [...] mathforum.org>
To: bug-Module-Build [...] rt.cpan.org
RT-Send-Cc:
Download (untitled) / with headers
text/plain 342b
Oh - apparently the CPAN shell is creating a bare-bones Makefile.PL for you, and then executing it. Not very helpful. =) Check out the Module::Build::Compat module - you can probably solve the problem just by adding "create_makefile_pl => 'small'" to your Build.PL, which will create a small pass-through Makefile.PL for you. -Ken
Date: Mon, 23 Feb 2004 09:53:56 -0600
Subject: Re: [cpan #5415] Error message when CPAN "install" command: Too early to specify a build action 'Build'. Do 'Build Build' instead.
From: Ken Williams <ken [...] mathforum.org>
To: bug-Module-Build [...] rt.cpan.org
RT-Send-Cc:
Download (untitled) / with headers
text/plain 342b
Oh - apparently the CPAN shell is creating a bare-bones Makefile.PL for you, and then executing it. Not very helpful. =) Check out the Module::Build::Compat module - you can probably solve the problem just by adding "create_makefile_pl => 'small'" to your Build.PL, which will create a small pass-through Makefile.PL for you. -Ken


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.