I just uploaded a module to CPAN that depends on some other modules, which I also uploaded. I thought I put the prereq information in Makefile.PL correctly, but after uploading I got an email from cpansmoke@alternation.net complaining that this module wouldn't run because Perl couldn't locate the modules it requires.

The module is RFID::Alien. It requires RFID::Base and RFID::EPC. The Makefile.PL says (excuse the spacing):

use ExtUtils::MakeMaker; WriteMakefile( NAME => 'RFID::Alien', VERSION_FROM => 'lib/RFID/Alien/Reader.pm', PREREQ_PM => { RFID::Tag => 0.002, RFID::EPC::Tag => 0.002, RFID::Reader => 0.002, RFID::Reader::Serial => 0.002, RFID::Reader::TestBase => 0.002, RFID::Reader::TCP => 0.002, POSIX => 0, Time::Local => 0, Carp => 0, Exporter => 0, warnings => 0, constant => 0, }, );
Here's part of the message I get from the smoke tests:
-- This is an error report generated automatically by CPANPLUS, version 0.049. + Below is the error stack during 'make test': + PERL_DL_NONLAZY=1 /usr/bin/perl5.8.0 "-MExtUtils::Command::MM" "-e" "t +est_harne\ss(0, 'blib/lib', 'blib/arch')" t/*.t t/01compile....# Failed test (t/01compile.t at line 8) # Tried to use 'RFID::Alien::Reader'. # Error: Can't locate RFID/Reader.pm in @INC (@INC contains: ...

What else do I need to do? Thanks!


In reply to Properly expressing module prerequesites for CPAN by sgifford

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.