我正在尝试安装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-验证器:
发布于 2019-09-23 20:26:28
我能够从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.https://stackoverflow.com/questions/58069024
复制相似问题