This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Samtools fails with libcrypto error

I want to check bam file quality. because previously my quality check level was not good. So I tried to check it's quality check by using samtools but, the terminal says "samtools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory" like this. How can i solve this problem??? :(

rnaseq qualitycheck samtools bam

1 answer

I have observed that this error usually happens when you install via conda/mamba but the order of channels is incorrect. So try the following:

# Uninstall samtools
conda remove samtools

# Set the proper channel order
conda config --prepend channels conda-forge
conda config --append channels bioconda

# Set the channel priority
conda config --set channel_priority strict

# Reinstall samtools
conda install samtools

You may need to update all packages in case other packages have troubles.

conda update --all

Log in to answer this question.