dolevrahat has asked for the wisdom of the Perl Monks concerning the following question:

Hello I am attempting to install The Bio:DB:HTS moudle.
After cloning the Bio:DB:HTS github repository I have attempted to install required dependencies using:

sudo cpanm --installdeps --force ./BioDBHTS/
I then get the following error message:
"Installing the dependencies failed: Installed version (0.4003) of Mod +ule::Build is not in range '0.42'"
However  cpan -D Module::Build yields:
Module::Build ---------------------------------------------------------------------- +--- (no description) L/LE/LEONT/Module-Build-0.4224.tar.gz /home/sal/perl5/lib/perl5/Module/Build.pm Installed: 0.4224 CPAN: 0.4224 up to date Leon Timmermans (LEONT) fawaka@gmail.com
From which I understand the Module::Build version 0.4224 and not 0.4003 is installed.
If someone can explain to me this error message and how to proceed with installing the dependencies I will be very grateful.

Replies are listed 'Best First'.
Re: Installation fails despite depndenices are already installed
by Corion (Patriarch) on Apr 16, 2018 at 19:16 UTC

    Maybe the perl that your super user runs is a different perl from what your user (sal) runs?

    which perl perl -V

    and

    sudo which perl sudo perl -V

    ... should give different output in that case.

    Update: Duh - it's right in your post:

    /home/sal/perl5/lib/perl5/Module/Build.pm

    This means that you installed Module::Build locally for user sal, but sudo cpanm ... likely doesn't see /home/sal/... in its search path.

    I think you should install BioDBHTS the same way you installed Module::Build. Most likely simply by not using sudo but using plain cpanm.