Hello,
I have samtools version 1.12 h9aed4be_1 bioconda
I have installed bcftools version 1.8 h4da6232_3 bioconda
and when I try to run bcftools I get :
bcftools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
My channels order is:
conda config --show channels
channels:
- conda-forge
- bioconda
- defaults
- nvidia
What can I do?
5 answers
I can't believe this never bit me, this bug has quite a discussion on github, this comment might have a solution for you:
conda install -c bioconda samtools openssl=1.0
Otherwise you might be able to link the newer library to the older version, as suggested a bit earlier in above linked discussion
Is there a reason you are using bcftools 1.8 from three years ago?
If you install samtools and bcftools afresh today:
conda create -n sambcfenv samtools bcftools
then you get up to date versions of samtools and bcftools (1.13, released last week) with fewer bugs and more features. They have been built recently with the current conda packages and are free from this libcrypto problem, which is a thing of the past.
Thank you!! I just created a new environment and it works :)
Hi,
I am also running into this issue now, but for some reason, even this doesn't seem to fix it anymore. When I create a new environment with just bcftools, then bcftools works (but it's still version 1.8; I won't upgrade to 1.13). But when I create a new environment just like you said, it still gives me this libcrypto problem. I can create a separate environment for every step in my pipeline, but for now, I prefer for it all to be in the same environment. Any new tips that might fix this?
If you are getting bcftools 1.8, it's probably because you do not have the conda-forge channel added. See bioconda's channel setup instructions.
Updating bcftools to 1.15.1 fixed this for me.
conda install -c bioconda -c conda-forge bcftools=1.15.1
I had this same problem today (on Fedora, btw) and removing bcftools and installing it again using mamba instead of conda fixed it:
conda remove bcftools
mamba install -c bioconda bcftools
You're probably missing libssl1.0.0. Install via sudo apt-get install libssl1.0.0 libssl-dev (on linux).
Log in to answer this question.
what does
tell you?
did you try jared.andrews07 's installation instructions?
I am working with a remote server of the university so I don't have the option to use sudo apt .. I usually use conda install
I tried
conda install -c anaconda opensslI have a similar issue, except my error is
I use
mamba. I created an environment:Then I did this:
When I try out
bcftoolsI get the error.Based on this comment, I am thinking I need to compile it from source instead of through
mamba. Is this true, is there an easier way?This should not have been an answer, so I've moved it to a comment.
Ah, if you do
mamba install -c conda-forge bcftools vcftools tabix polars pandas numpy scikit-learn gsl==2.5, it will forcemambato install the older version ofbcftools(v1.10) - that's a downside, but I only need to convert some files.And yes, this works too. Ok. Solved for me! Thank you all!