On May 26, 2008, at 6:43 PM, Eric Roode wrote:

On Mon, May 26, 2008 at 4:15 PM, Burak Gürsoy <[EMAIL PROTECTED]> wrote:
Hi,

It looks like you're suffering from a feature of MakeMaker. Add this to your
Makefile.PL options (WriteMakefile):

  PL_FILES => {},

so that your Build.PL will not be identified as some executable code...

Hey, that's a great tip.  Thanks, Burak.
-- Eric

I highly recommend that you consider using the "create_makefile_pl => 'traditional'" option which takes care of these annoying little details for you automatically.

If you had done a web search for the error "Too early to specify a build action 'Build'" you would have seen that others have made this same error in their Makefile.PL files. The first Google result, for example, has the solution: http://www.cpanforum.com/threads/373

Perhaps someone should file a bug against MakeMaker and/or Module::Build to emit a more useful error in this case? Or make Build.PL be an explicit exception to MakeMaker's rules? That won't help older installations, but it will make the future a happier place.

Chris


Reply via email to