Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: robleach [...] lanl.gov
Cc:
AdminCc:

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



Subject: how to get cpan to install correctly...
Hi, I don't know if this is actually a bug or not. If not, please direct me to the appropriate forum. I created a module and submitted it to cpan. I tested it myself at the time (back in March of 2003). I installed it successfully (if I remember correctly) using `perl -e shell -MCPAN`. I had used the Module::Build paradigm and everything seemed good. I never revisited it until recently and I discovered that 5 out of 6 testers couldn't install it. So I tried reinstalling it myself and couldn't. This module was the only one I'd ever used Module::Build for and I've forgotten how I did it. Where do I start debugging this problem? Here's what I get: ---------------------------------------------------------------- Show quoted text
cpan> install IO::Pipe::Producer
CPAN: Storable loaded ok Going to read /Users/rob/.cpan/Metadata Database was generated on Tue, 09 May 2006 09:24:19 GMT Running install for module IO::Pipe::Producer Running make for R/RO/ROBLEACH/IO-Pipe-Producer-1.5.tar.gz CPAN: Digest::MD5 loaded ok Checksum for /Users/rob/.cpan/sources/authors/id/R/RO/ROBLEACH/IO-Pipe-Producer -1.5.tar.gz ok Scanning cache /Users/rob/.cpan/build for sizes IO-Pipe-Producer-1.5/ IO-Pipe-Producer-1.5/test.pl IO-Pipe-Producer-1.5/lib/ IO-Pipe-Producer-1.5/lib/IO/ IO-Pipe-Producer-1.5/lib/IO/Pipe/ IO-Pipe-Producer-1.5/lib/IO/Pipe/Producer.pm IO-Pipe-Producer-1.5/README IO-Pipe-Producer-1.5/Build.PL Package seems to come without Makefile.PL. (The test -f "/Users/rob/.cpan/build/IO-Pipe-Producer-1.5/Makefile.PL" returned false.) Writing one on our own (setting NAME to IOPipeProducer) CPAN.pm: Going to build R/RO/ROBLEACH/IO-Pipe-Producer-1.5.tar.gz Writing Makefile for IOPipeProducer cp lib/IO/Pipe/Producer.pm blib/lib/IO/Pipe/Producer.pm Manifying blib/man3/IO::Pipe::Producer.3pm /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 255 /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 ---------------------------------------------------------------- Why does it try to create a Makefile instead of running Build.PL? Is there something I need to add to my module to tell cpan that it needs to use Module::Build mechanisms to install my module or has Module::Build changed, making my set-up obsolete? I have Module::Build installed. If I try and install it manually doing Build, Build test, and Build install, it works just fine. One of the five failed tests built it correctly and got to my test script, though it failed one of my tests, but the output in the report doesn't tell me which one. It should print out "not ok #" to tell me which number test failed. Is it possible to get that output? However, I think that's less important than fixing the installation problem. One thing at a time, you know? Any ideas on what's wrong with the installation process? I'm running perl 5.8.1-RC3, mac os x 10.3.9, and just reinstalled the Module::Build module successfully. Thanks, Rob
Download (untitled) / with headers
text/plain 709b
On Wed May 10 18:11:17 2006, guest wrote: Show quoted text
> Package seems to come without Makefile.PL. > (The test -f "/Users/rob/.cpan/build/IO-Pipe-Producer- > 1.5/Makefile.PL" returned false.) > Writing one on our own (setting NAME to IOPipeProducer)
... Show quoted text
> Why does it try to create a Makefile instead of running Build.PL?
Support for Module::Build was only added to CPAN.pm in the 1.8x series (around last December). It appears your version of CPAN.pm is too old to know about Module::Build. There are two solutions. 1. Upgrade CPAN.pm. Obviously you can't count on all users doing this so... 2. Provide a Makefile.PL compatibility wrapper around Build.PL. For information on that see Module::Build::Compat.
Yup, what Schwern said. -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.