Devel::Cover: whence the reference to Class::MethodMaker?

2012-03-14 Thread James E Keenan
On a machine where I can only install libraries underneath my home 
directory, I today tried to install and use Devel::Cover.  After 
considerable effort, I was able to install Devel-Cover-0.79.  But when I 
went to use it in conjunction with 'prove' I got error output like this:


#
$ HARNESS_PERL_SWITCHES=-MDevel::Cover prove t/001_new.t
t/001_new..Devel::Cover: Can't open 
blib/lib/Class/MethodMaker/Engine.pm for MD5 digest: No such file or 
directory
Devel::Cover: Can't open blib/lib/Class/MethodMaker/scalar.pm for MD5 
digest: No such file or directory
Devel::Cover: Can't open blib/lib/Class/MethodMaker/array.pm for MD5 
digest: No such file or directory
Devel::Cover: Can't open blib/lib/Class/MethodMaker/hash.pm for MD5 
digest: No such file or directory

#

Class::MethodMaker is probably not installed on this machine, and it's 
certainly neither installed underneath my home directory nor used in the 
testing code or the code being tested.  But what's really puzzling to me 
is the fact that I cannot locate the string 'MethodMaker' anywhere in 
the Devel::Cover source code!


#
[Devel-Cover-0.79] 542 $ find . -type f | xargs grep -in MethodMaker
[Devel-Cover-0.79] 543 $
#

Can anyone suggest why I am getting this error message?

Should Class::MethodMaker be listed as a prerequisite for Devel::Cover?

Thank you very much.
Jim Keenan


Re: Devel::Cover: whence the reference to Class::MethodMaker?

2012-03-14 Thread Michael G Schwern
On 2012.3.14 5:49 PM, James E Keenan wrote:
 On a machine where I can only install libraries underneath my home directory,
 I today tried to install and use Devel::Cover.  After considerable effort, I
 was able to install Devel-Cover-0.79.  But when I went to use it in
 conjunction with 'prove' I got error output like this:
 
 #
 $ HARNESS_PERL_SWITCHES=-MDevel::Cover prove t/001_new.t
 t/001_new..Devel::Cover: Can't open
 blib/lib/Class/MethodMaker/Engine.pm for MD5 digest: No such file or directory
 Devel::Cover: Can't open blib/lib/Class/MethodMaker/scalar.pm for MD5 digest:
 No such file or directory
 Devel::Cover: Can't open blib/lib/Class/MethodMaker/array.pm for MD5 digest:
 No such file or directory
 Devel::Cover: Can't open blib/lib/Class/MethodMaker/hash.pm for MD5 digest: No
 such file or directory
 #
 
 Class::MethodMaker is probably not installed on this machine, and it's
 certainly neither installed underneath my home directory nor used in the
 testing code or the code being tested.  But what's really puzzling to me is
 the fact that I cannot locate the string 'MethodMaker' anywhere in the
 Devel::Cover source code!

Is it possible you had a pre-existing cover_db directory?  Try deleting it.


-- 
emacs -- THAT'S NO EDITOR... IT'S AN OPERATING SYSTEM!