So I'm trying to create a coverage report for my scripts but I get the following error:
Can't load '/usr/pkgs/perl/5.14.1/lib64/module/x86_64-linux/auto/Data/
+Dumper/Dumper.so' for module Data::Dumper: /usr/pkgs/perl/5.14.1/lib6
+4/module/x86_64-linux/auto/Data/Dumper/Dumper.so: undefined symbol: P
+L_hints at /usr/pkgs/perl/5.26.1/lib64/5.26.1/XSLoader.pm line 96.
at /usr/pkgs/perl/5.14.1/lib64/module/x86_64-linux/Data/Dumper.pm li
+ne 36.
Compilation failed in require at /disk/19.04.003/bin/script.pl line 13
+8.
BEGIN failed--compilation aborted at /disk/19.04.003/bin/script.pl lin
+e 138.
On line 36 of Dumper.pm the code is:
XSLoader::load( 'Data::Dumper' ) unless $Useperl;
And on line 96 of XSLoader.pm the code is:
# Many dynamic extension loading problems will appear to come from
# this section of code: XYZ failed at line 123 of DynaLoader.pm.
# Often these errors are actually occurring in the initialisation
# C code of the extension XS file. Perl reports the error as being
# in this perl code simply because this was the last perl code
# it executed.
my $libref = dl_load_file($file, 0) or do {
require Carp;
Carp::croak("Can't load '$file' for module $module: " . dl_error()
+);
};
The way I did the coverage report:
setenv PERL5LIB /disk/coverage/perl/lib
setenv PERL5OPT -MDevel::Cover
setenv DEVEL_COVER_DB_FORMAT JSON
How should I debug such issue? Where should I start?