Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Devel::Cover can't find modules

by dinomite (Sexton)
on Apr 28, 2008 at 21:41 UTC ( [id://683376]=perlquestion: print w/replies, xml ) Need Help??

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

I get the following error when a program with Devel::Cover:
Devel::Cover: Can't find file "blib/lib/Storable.pm" (blib/lib/Storabl +e.pm (autosplit into blib/lib/auto/Storable/retrieve.al)): ignored. Devel::Cover: Can't find file "blib/lib/Net/SSLeay.pm" (blib/lib/Net/S +SLeay.pm (autosplit into blib/lib/auto/Net/SSLeay/randomize.al)): ign +ored.
I've searched extensively through Google and here at PerlMonks but have not been able to divine what the error is trying to tell me, or even what this whole 'blib/lib' jazz is about. Can anyone help me with this problem or enlighten me to what the whole 'blib/lib' thing is?

Replies are listed 'Best First'.
Re: Devel::Cover can't find modules
by naikonta (Curate) on Apr 29, 2008 at 03:44 UTC
    What exactly are you doing with your code? I can't extensively search through anything trying to guess what the errors mean without you spitting a line of code, or so. The blib directory used only during modules installation process. Are you testing modules?

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

      Sorry, I should have made it clearer. I have a test suite for some libraries and it runs all fine and dandy. In order to get code coverage, I simply added use Devel::Cover to the test program which causes the warning to be thrown. The output from Devel::Cover is still created in cover_db, and I can run the cover command to get pretty output and that all works just fine. So, in short, everything is installed and working, I'm just confused why that warning is being thrown. I did find while searching yesterday that it the 'blib' thing might have something to do with an autoloader and indeed, Devel::Cover makes use of DynaLoader.
Re: Devel::Cover can't find modules
by Khen1950fx (Canon) on Apr 29, 2008 at 08:58 UTC
    You probably didn't set it up right. Try this:

    1.) You'll need Test::Run, Test::Run::CmdLine, and Test::Trap

    2.) download CGI

    3.) Unpack and cd to the t directory

    4.) Run: HARNESS_PERL_SWITCHES="-MDevel::Cover" runprove -v

    5.) Then run: cover

    I hope this helps.

      Ah-ha! I'm not sure which of the depended modules fixed it, but installing Test::Run, Test::Run::CmdLine & Test::Trap along with their own dependencies made the warning from Devel::Cover go away. Thanks for the tip!

Log In?
Username:
Password:

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

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

    No recent polls found