Question: Breakdancer : Can't locate Statistics/Descriptive.pm in @INC while trying to run bam2cfg.pl
2
gravatar for johnnytam100
12 months ago by
johnnytam10040
johnnytam10040 wrote:

My command is as follows :

/data/tam/script/breakdancer-test-compile/lib/breakdancer-max1.4.5-unstable-66-4e44b43/bam2cfg.pl bwa1/bam/TTNR_bam_0-1000/libTTNRgenome_master_aln.bam.tmp.0000.bam

However, the error as follows appeared :

Can't locate Statistics/Descriptive.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 /data/tam/script/breakdancer-test-compile/lib/breakdancer-max1.4.5-unstable-66-4e44b43/bam2cfg.pl line 7. BEGIN failed--compilation aborted at /data/tam/script/breakdancer-test-compile/lib/breakdancer-max1.4.5-unstable-66-4e44b43/bam2cfg.pl line 7.

I have read similar post related to adding path to INC but still didn't work.

Any idea what to do? Since I am quite new to linux, explaining from the basics would be much appreciated.

Thanks in advance.

inc bam2cfg.pl breakdancer perl • 1.2k views
ADD COMMENTlink modified 12 months ago by amy.bashir80 • written 12 months ago by johnnytam10040
2
gravatar for amy.bashir
12 months ago by
amy.bashir80
amy.bashir80 wrote:

I remember having a similar problem, it was because I had two versions of Perl installed so the paths got all messed up.

Is the Statistics/Descriptive module in one of the paths listed in @INC: /usr/local/lib64/perl5 OR /usr/local/share/perl5 OR /usr/lib64/perl5/vendor_perl OR /usr/share/perl5/vendor_perl OR /usr/lib64/perl5 /usr/share/perl5 ?

You can use perldoc to locate where you installed the Statistics/Descriptive module

perldoc -lm Statistics::Descriptive
ADD COMMENTlink written 12 months ago by amy.bashir80

I tried... and the result is

No module found for "Statistics::Descriptive".

And I am trying to install Statistics-Descriptive-3.0612 now but another error said I don't have permission to write...

ERROR: Can't create '/usr/local/share/man/man3'
Do not have write permissions on '/usr/local/share/man/man3'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at /usr/share/perl5/Module/Build/Base.pm line 2988

There is little info about this situation on google. Do you know how could I write or somehow install to another directory?

Thank you!

ADD REPLYlink modified 12 months ago • written 12 months ago by johnnytam10040
1

I will just say up front that I am really new to all this too...

Do you have root access on the system you are using, i.e. can you use sudo?

Maybe it would be easier to follow the instructions here to set up a new place where you can use CPANminus to install modules.

ADD REPLYlink written 12 months ago by amy.bashir80

It worked!!! Thank you very much!!!

ADD REPLYlink written 12 months ago by johnnytam10040
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 598 users visited in the last hour