Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Devel::Cover can't find modules

by dinomite (Sexton)
on Apr 28, 2008 at 21:41 UTC ( #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/" (blib/lib/Storabl (autosplit into blib/lib/auto/Storable/ ignored. Devel::Cover: Can't find file "blib/lib/Net/" (blib/lib/Net/S (autosplit into blib/lib/auto/Net/SSLeay/ 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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2020-06-03 12:44 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (23 votes). Check out past polls.