When execute command: lcov --capture --directory . --no-external --output-file coverage.info
to generate code coverage report, I encountered the following error:
$ lcov --capture --directory . --no-external --output-file coverage.info |
Can’t locate CPAN.pm
fixed this problem “Can’t locate CPAN.pm” by running the command yum install perl-CPAN
sh-4.2$ sudo perl -MCPAN -e 'install JSON' |
Then run sudo perl -MCPAN -e 'install JSON'
again, it works.
Can’t locate JSON/PP.pm
fixed this problem by copying backportPP.pm to the PP.pm file.
$ cd /usr/local/share/perl5/JSON |