Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Module::Build, PodParser and no 'file' or 'fh' parameter

by Brutha (Friar)
on Mar 09, 2006 at 14:27 UTC ( [id://535391]=perlquestion: print w/replies, xml ) Need Help??

Brutha has asked for the wisdom of the Perl Monks concerning the following question:

Hello, did anyone install DBIx::Class Version 0.05007 on a windows machine for ActiveState Perl? I need a new version due to DB2 support, so I cannot use the ActiveState ppm.

I run perl Build.PL, after that perl Build. The error message is:

No 'file' or 'fh' parameter given at C:/Perl/site/lib/Module/Build/Pod +Parser.pm line 24.
I find no way around that. As I had problems with the Build stuff before, I tried to create a "normal" makefile, changed the "passthrough" to "traditional" but had no luck this time. Any idea?

And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)

Replies are listed 'Best First'.
Re: Module::Build, PodParser and no 'file' or 'fh' parameter
by Corion (Patriarch) on Mar 09, 2006 at 14:33 UTC

    I guess that the version of Module::Build that you have installed is incompatible with the features that this Build.PL requests or something. A look into the Build.PL of DBIx::Class doesn't reveal anything (to me at least) that really requires features of Module::Build that are unavailable in ExtUtils::MakeMaker. I think a blindly ported, untested Makefile.PL like below should work for DBIx::Class as well:

    use strict; use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( 'NAME' => 'DBIx::Class', 'VERSION_FROM' => 'lib/DBIx/Class.pm', # finds $VERSION 'PREREQ_PM' => { 'Data::Page' => 2.00, 'Scalar::Util' => 0, 'SQL::Abstract' => 1.20, 'SQL::Abstract::Limit' => 0.101, 'Class::C3' => 0.11, 'Storable' => 0, 'Class::Data::Accessor' => 0.01, 'Carp::Clan' => 0, 'DBI' => 1.40, # Required for build 'DBD::SQLite' => 1.11, # Recommended 'Data::UUID' => 0, 'Module::Find' => 0, 'Class::Inspector' => 0, }, # e.g., Module::Name => 1.1 ); 1;

    You will have to comment out the modules in the build or recommended sections if you don't want these modules. You might want to report the problem with Module::Build to the Module::Build mailing list or maybe through RT.

      Thank You for the very fast answer.

      At least it is makes, tests and installs now. Hope it is working, but that is another test.

      But You are right, I should report the problem. Either I get a hint, where I was too stupid, or I found a bug. Both alternatives will help with the next build script.

      And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
      (Terry Pratchett, Small Gods)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://535391]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 21:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found