user1807271
user1807271

Reputation: 1006

Perl module in @INC path, but can't be located though present. Other modules are found

Perl module DBD::mysql was being found and now is not. I'm getting the error message.

Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /mnt/Lab/Data/IonTorrent/plugins/WH_v2_05/scripts/create_blinded_reports.pl line 13. BEGIN failed--compilation aborted at /mnt/Lab/Data/IonTorrent/plugins/WH_v2_05/scripts/create_blinded_reports.pl line 13.

I looked to see where the module was located.

$ perldoc -l DBD::mysql
/usr/lib64/perl5/DBD/mysql.pm

the path /usr/lib64/perl5 is there so why can't it find it.

Here is the code.

#!/usr/bin/perl -w 


use strict;
use DBI;
use DBD::mysql; #<----- this is the line that error (I eliminated the header, this is actually line 13.)
use File::Slurp;
use Data::Dumper;

my ($server,$run)=@ARGV;

## variables
my $wh_report="/mnt/Lab/Data/IonTorrent/$server/$run/4_report/wh_report_".$run.".txt";

** Also I checked that I was on the correct server.

It also compiles fine.

perl -c create_blinded_reports.pl
create_blinded_reports.pl syntax OK

Upvotes: 0

Views: 1082

Answers (1)

user1807271
user1807271

Reputation: 1006

I dropped use DBD::mysql; from the code and it ran fine. Thanks!

Upvotes: 1

Related Questions