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

I'm having some problems building/installing IO::Prompt
perl Makefile.PL Warning: prerequisite version 0 not found. Could not eval ' package ExtUtils::MakeMaker::_version; no strict; local $VERSION; $VERSION=undef; do { use version; $VERSION = qv('0.99.2'); }; $VERSION ' in lib/IO/Prompt.pm: Can't locate version.pm in @INC (@INC c +ontains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/ +5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib +/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor +_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 +/usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-mul +ti /usr/lib/perl5/5.8.0 .) at (eval 9) line 7, <FH> line 6. BEGIN failed--compilation aborted at (eval 9) line 7, <FH> line 6. WARNING: Setting VERSION via file 'lib/IO/Prompt.pm' failed at /usr/lib/perl5/5.8.0/ExtUtils/MakeMaker.pm line 523 Writing Makefile for IO::Prompt

It does install, but I get the following error when trying to load it..
Can't locate version.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i +386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/ +5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib +/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-m +ulti /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr +/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at / +usr/lib/perl5/site_perl/5.8.0/IO/Prompt.pm line 6. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.0/IO +/Prompt.pm line 6. Compilation failed in require at mail_report line 4. BEGIN failed--compilation aborted at mail_report line 4.
Can anyone help??

Replies are listed 'Best First'.
Re: Problems building IO::Prompt
by planetscape (Chancellor) on Oct 04, 2005 at 16:59 UTC
      Nuff said ... should have done the homework.
Re: Problems building IO::Prompt
by Tanktalus (Canon) on Oct 04, 2005 at 17:50 UTC

    We had a thread dealing with IO::Prompt just recently where I faced a similar problem. CPAN, and even Build.PL, doesn't really deal with version very well. In fact, I'd kind of argue that it's only bleeding-edge, not-for-production modules that should use version at this point.

    The Want problem, however, has been fixed by the author, I'm assured. However, that would be version 0.99.3 or higher, whenever they decide to release it.