On 5/17/05, Jovial Shah <[EMAIL PROTECTED]> wrote:
> /opt/third-party/pkg/perl-5.6.1/bin/perl
> -I/workplace/workingDirectory/CodeCoverage/Devel-Cover-0.53/lib/
> -MDevel::Cover ../SamplePerlProgram/cc-1.pl
> 
> I get an error message.
> 
> Can't locate Devel/Cover/Inc.pm in @INC (@INC contains:
> /workplace/workingDirectory/CodeCoverage/Devel-Cover-0.53/lib/ . and
> other paths.
> 
> Then when I checked in the ......Devel-Cover-0.53/lib/Devel/Cover/
> directory, Inc.pm did not exist.
> Does Inc.pm get generated or it didn't exist in the 0.53 tar ball ?
> Whats the work around ?

It sounds like you haven't actually installed Devel::Cover, but are
just pointing at the distribution directory. I think you can install
it with something like:

cd /workplace/workingDirectory/CodeCoverage/Devel-Cover-0.53/
perl Makefile.PL
make
make test
sudo make install

or by using the CPAN module with something like this: 
sudo perl -MCPAN -e 'install Devel::Cover'

Either of these will cause Devel::Cover to get installed to one of the
other directories in @INC. You could then take your working directory
out of @INC.

Hope it helps.

-Andy

Reply via email to