I cloned the VEP repo:
https://github.com/ensembl/ensembl-vep
Then I installed Archive::Zip and DBI:
cpanm -v Archive::Zip
cpanm -v DBI
And tried running perl INSTALL.pl
But it gave me an error:
Checking prerequisites...
requires:
! Bio::Root::Version is not installed
So, I installed it too, the same way: cpanm -v Bio::Root::Version. Then, I tried installing VEP again and the error stayed the same:
Checking prerequisites...
requires:
! Bio::Root::Version is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Run 'Build installdeps' to install missing prerequisites.
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Bio-DB-HTS' version '2.11'
Module::Build version 0.42 required--this is only version 0.4005 at ./Build line 43.
ERROR: Shared Bio::DB:HTS library not found
So, I tried doing upgrade by launching cpan. It asks several questions and I answered 'manual', 'yes' - to needed internet, and then:
cpan> upgrade
Ultimately it did not help, so I am rather stuck here.
I also tried downloading Bioperl, setting up PERL5LIB to its folder and running perl INSTALL.pl but no luck.
Could anyone help?
Update
I tried doing what was suggested in the answer by Ben_Ensembl
and got the following message:
(py37) -bash-4.2$ cpanm Module::Build
!
! Can't write to /usr/local/share/perl5 and /usr/local/bin: Installing modules to /opt/gris/perl5
! To turn off this warning, you have to do one of the following:
! - run me as a root or with --sudo option (to install to /usr/local/share/perl5 and /usr/local/bin)
! - Configure local::lib your existing local::lib in this shell to set PERL_MM_OPT etc.
! - Install local::lib by running the following commands
!
! cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
!
Module::Build is up to date. (0.4231)
When I try running the VEP command by itself I get the following error:
Can't locate Bio/EnsEMBL/Registry.pm in @INC
My server OS system is the following:
(py37) -bash-4.2$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 7.7 (Maipo)
Release: 7.7
Codename: Maipo
I tried cloning the VEP
repo and running the necessary installation commands all over since it is writing that Module::Build is up to date. (0.4231)
but got the same message:
Module::Build version 0.42 required--this is only version 0.4005 at ./Build line 43.
\
Update
I was able to make the updated Module::Build
to work by setting PERL5LIB
to /opt/gris/perl5/lib/perl5/
, and it did not give me the same error, and the installer proceeded to next steps, however, almost ALL OF THE TESTS FAILED
and I am getting such an output (excerpt):
# Looks like you failed 1 test of 20.
./t/VariantRecoder.t ................................. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/20 subtests
(less 19 skipped subtests: 0 okay)
./t/bam_edit.t ....................................... "my" variable $tr masks earlier declaration in same scope at ./t/bam_edit.t line 163.
./t/bam_edit.t ....................................... 1/?
# Failed test 'use Bio::EnsEMBL::VEP::AnnotationSource::File;'
# at ./t/bam_edit.t line 27.
# Tried to use 'Bio::EnsEMBL::VEP::AnnotationSource::File'.
# Error: Can't locate Try/Tiny.pm in @INC
Update
After running the following command as a root:
yum install enablerepo=rpmforge perl-Try-Tiny
And then:
cpanm autodie
The installation went well.
check this folder:
/opt/gris/perl5
see ifBio/EnsEMBL/Registry.pm
(or whatever module that you need) is there.If it's there you can copy (
cp -v
) it to/usr/local/share/perl5
It has worked for me in the past when the module was installed in another folder that wasn't part of INC, and I moved it to one of the folders in INC and worked. Please make sure the module has r+x permission.
see if you have write permission You can add write permission using
This does solve this error, but does not fix the whole issue. It seems that
INSTALL.pl
creates some directories and if I try to move on with just the existing half installedVEP
many files are going to be absent, for instance:Bio/EnsEMBL/Variation/DBSQL/VariationFeatureAdaptor.pm
which neitherbioperl
nor the clonedgithub
ensemble repo
has