【问题标题】:Cannot install perl package `Vcf` via CPAN无法通过 CPAN 安装 perl 包 `Vcf`
【发布时间】:2020-01-23 21:53:50
【问题描述】:

我正在尝试为我的 perlbrew 安装安装 perl 包 VCF,通过 vcf-validator 访问它

703404669@bioitutil2:~$ vcf-validator 
Can't locate Vcf.pm in @INC (you may need to install the Vcf module) (@INC contains: /home/703404669/Scripts/vcftools-vcftools-ea875e2/src/perl /home/703404669/perl5/perlbrew/perls/perl-5.30.0/lib/site_perl/5.30.0/x86_64-linux /home/703404669/perl5/perlbrew/perls/perl-5.30.0/lib/site_perl/5.30.0 /home/703404669/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0/x86_64-linux /home/703404669/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0) at /usr/local/bin/vcf-validator line 9.
BEGIN failed--compilation aborted at /usr/local/bin/vcf-validator line 9.

所以我通过 CPAN 安装,VCF 不是 Vcf

703404669@bioitutil2:~$ cpan VCF
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/home/703404669/.cpan/Metadata'
  Database was generated on Mon, 23 Sep 2019 11:29:03 GMT
VCF is up to date (1.003).

但仍然无法访问模块/库:

703404669@bioitutil2:~$ vcf-validator 
Can't locate Vcf.pm in @INC (you may need to install the Vcf module) (@INC contains: /home/703404669/Scripts/vcftools-vcftools-ea875e2/src/perl /home/703404669/perl5/perlbrew/perls/perl-5.30.0/lib/site_perl/5.30.0/x86_64-linux /home/703404669/perl5/perlbrew/perls/perl-5.30.0/lib/site_perl/5.30.0 /home/703404669/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0/x86_64-linux /home/703404669/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0) at /usr/local/bin/vcf-validator line 9.
BEGIN failed--compilation aborted at /usr/local/bin/vcf-validator line 9.

这个我也试过了

703404669@bioitutil2:~$ /home/703404669/perl5/perlbrew/perls/perl-5.30.0/bin/perl -e'use VCF'; /home/703404669/perl5/perlbrew/perls/perl-5.30.0/bin/cpan VCF; /home/703404669/perl5/perlbrew/perls/perl-5.30.0/bin/perl -e'VCF'
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/home/703404669/.cpan/Metadata'
  Database was generated on Mon, 23 Sep 2019 11:29:03 GMT
VCF is up to date (1.003).

但我仍然无法运行 vcf-validator :(

【问题讨论】:

  • 根据metacpan.org,全大写:VCF
  • @HåkonHægland 谢谢,我已经更正了,但它仍然无法正常工作,我已经编辑了问题
  • 也许你可以使用this GitHub 分发?

标签: perl cpan perlbrew vcf-variant-call-format


【解决方案1】:

我能够从GitHub 安装软件包:

git clone git@github.com:vcftools/vcftools.git
cd vcftools
./autogen.sh
./configure --prefix=/home/hakon/perlbrew/perls/perl-5.28.1
make
make install

然后我检查是否可以运行vcf-validator

$ vcf-validator --help
Usage: vcf-validator [OPTIONS] file.vcf.gz
Options:
   -d, --duplicates                 Warn about duplicate positions.
   -u, --unique-messages            Output all messages only once.
   -h, -?, --help                   This help message.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-02-17
    • 2020-07-16
    • 1970-01-01
    • 2017-02-09
    • 2020-05-07
    • 2011-06-15
    • 2017-08-28
    • 1970-01-01
    相关资源
    最近更新 更多