bioconda-recipes: entrez-direct installation links the wrong perl version on a MacOS
entrez-direct installation links the wrong perl version on a MacOS
conda create -y -n foo python=3.6
conda activate foo
conda install entrez-direct
All packages listed for installation are for Perl 5.26 except a library that looks like Perl 5.22
...
perl-threaded bioconda/osx-64::perl-threaded-5.22.0-10
...
Running efetch fails:
efetch
produces:
Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains:
/Users/ialbert/miniconda3/envs/foo/bin/aux/lib/perl5
/Users/ialbert/miniconda3/envs/foo/lib/perl5/site_perl/5.22.0/darwin-thread-multi-2level
/Users/ialbert/miniconda3/envs/foo/lib/perl5/site_perl/5.22.0
/Users/ialbert/miniconda3/envs/foo/lib/perl5/5.22.0/darwin-thread-multi-2level
/Users/ialbert/miniconda3/envs/foo/lib/perl5/5.22.0 .) at
/Users/ialbert/miniconda3/envs/foo/bin/edirect.pl line 71.
BEGIN failed--compilation aborted at /Users/ialbert/miniconda3/envs/foo/bin/edirect.pl line 71
Note how the import is trying to access directories for perl 5.22. The perl versions are:
ls -l ~/miniconda3/envs/foo/bin/perl*
it shows two versions for perl 5.22 an 5.26 and the 5.22 is linked under the default perl:
-rwxr-xr-x 5 ialbert staff 1.9M Apr 1 2016 /Users/ialbert/miniconda3/envs/foo/bin/perl
-rwxr-xr-x 5 ialbert staff 1.9M Apr 1 2016 /Users/ialbert/miniconda3/envs/foo/bin/perl5.22.0
-rwxrwxr-x 1 ialbert staff 2.0M Jan 30 10:27 /Users/ialbert/miniconda3/envs/foo/bin/perl5.26.2
-rwxr-xr-x 1 ialbert staff 44K Jan 30 10:27 /Users/ialbert/miniconda3/envs/foo/bin/perlbug
-rwxr-xr-x 1 ialbert staff 284B Jan 30 10:27 /Users/ialbert/miniconda3/envs/foo/bin/perldoc
-rwxr-xr-x 1 ialbert staff 11K Jan 30 10:27 /Users/ialbert/miniconda3/envs/foo/bin/perlivp
-rwxr-xr-x 1 ialbert staff 44K Jan 30 10:27 /Users/ialbert/miniconda3/envs/foo/bin/perlthanks
But the Perl 5.22 does not have any of the required packages installed hence it fails. Moreover, conda thinks all libraries are correct so one cannot fix this error by installing the correct Perl library. conda believes that Perl 5.26 is active.
The “fix” is to uninstall perl then reinstall entrez-direct:
conda remove perl
conda install entrez-direct
now efetch works as the correct version of perl is linked in.
ls -l ~/miniconda3/envs/foo/bin/perl*
produces:
-rwxrwxr-x 1 ialbert staff 2.0M Jan 30 10:32 /Users/ialbert/miniconda3/envs/foo/bin/perl
-rwxr-xr-x 5 ialbert staff 1.9M Apr 1 2016 /Users/ialbert/miniconda3/envs/foo/bin/perl5.22.0
-rwxrwxr-x 1 ialbert staff 2.0M Jan 30 10:32 /Users/ialbert/miniconda3/envs/foo/bin/perl5.26.2
-rwxrwxr-x 1 ialbert staff 45K Jan 30 10:32 /Users/ialbert/miniconda3/envs/foo/bin/perlbug
-rwxrwxr-x 1 ialbert staff 322B Jan 30 10:32 /Users/ialbert/miniconda3/envs/foo/bin/perldoc
-rwxrwxr-x 1 ialbert staff 11K Jan 30 10:32 /Users/ialbert/miniconda3/envs/foo/bin/perlivp
-rwxrwxr-x 1 ialbert staff 45K Jan 30 10:32 /Users/ialbert/miniconda3/envs/foo/bin/perlthanks
I do think that this error is not directly caused by the entrez-direct recipe, rather than some interplay of some other components. It is where most bioinformaticians will run into though, so it is useful if it labeled as such.
I am also hoping that this gets tagged in a way that gets to whoever can fix it.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 28 (28 by maintainers)
A different order in listing the requirements also appears to help the problem. Installing
entrez-directlike this will make it work:this now points to some sort of inconsistency in the dependency graph.