Skip Menu |

This queue is for tickets about the Text-RecordParser CPAN distribution.

Report information
The Basics
Id: 19800
Status: resolved
Worked: 1 min
Priority: 0/
Queue: Text-RecordParser

People
Owner: kclark [...] cpan.org
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: v1.2.1
Fixed in: (no value)



When I tried to install this module via CPAN on a fairly stock/clean perl 5.8.6 installation, Module::Build barfed trying to parse some $VERSION -related magic in lib/Text/RecordParser, causing the whole build to fail. As it turns out, upgrading my version of the "version" module (via CPAN "install version") fixed this. You probably have a newer one installed already and hence didn't ever see this problem. Error output: ----cut------------------------------------------------------------- evoc8 Text-RecordParser-v1.2.1 # perl Build.PL Error evaling version line 'q# Hide from _packages_inside() #; package Module::Build::Mas to whoduleInfo::_version; no strict; local $VERSION; $VERSION=undef; do { our $VERSION = version->new('1.2.1'); }; $VERSION ' in /root/.cpan/build/Text-RecordParser-v1.2.1/lib/Text/RecordParser.pm: Can't locate object method "new" via package "version" at (eval 15) line 7, <GEN0> line 100. Can't determine distribution version, must supply either 'dist_version', 'dist_version_from', or 'module_name' parameter at /usr/lib/perl5/site_perl/5.8.6/Module/Build/Base.pm line 939. ----cut------------------------------------------------------------- Basically the problem lies in the line of lib/Text/RecordParser.pm that has the "version->new" call. Beyond that, the problem is getting rather confusing (in terms of what the "right" way is to fix this).
From: kclark [...] cpan.org
On Thu Jun 08 18:56:57 2006, BLBLACK wrote: Show quoted text
> > When I tried to install this module via CPAN on a fairly stock/clean > perl 5.8.6 installation, Module::Build barfed trying to parse some > $VERSION -related magic in lib/Text/RecordParser, causing the whole > build to fail. > > As it turns out, upgrading my version of the "version" module (via CPAN > "install version") fixed this. You probably have a newer one installed > already and hence didn't ever see this problem.
I see that I have "version" required in Build.PL, but no version of "version" is specified. It works with my version of 0.50, but I see that 0.64 is the latest, so I'll specify 0.50 and test with 0.64. What version do you have? ky
I assume this all works now.