This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Samfile error: dyld: Library not loaded: @rpath/libcrypto.1.0.0.dylib

I've downloaded samfiles using conda For converting sam to bam I used the command

samtools view -S -b /Users/dhee/Desktop/SRR12304924.s > /Users/dhee/Desktop/SRR12304924.bam

In getting an error as

dyld: Library not loaded: @rpath/libcrypto.1.0.0.dylib
  Referenced from: /Users/dhee/miniconda3/bin/samtools
  Reason: image not found
zsh: abort      samtools view -S -b /Users/dhee/Desktop/SRR12304924.s 
samfiles

I installed samtools using conda. I got a similar error message but the reason is different.

Reason: tried: '/Users/Chris/opt/anaconda3/bin/../lib/libcrypto.1.0.0.dylib' (no such file), '/Users/Chris/opt/anaconda3/bin/../lib/libcrypto.1.0.0.dylib' (no such file), '/usr/local/lib/libcrypto.1.0.0.dylib' (no such file), '/usr/lib/libcrypto.1.0.0.dylib' (no such file).

Hi, I have the same error while trying to use samtools. I have installed it using conda too. did you fix the error and how ? I tried conda uninstall samtools conda update --all conda install samtools But it didn't work for me.

Thanks.

1 answer

Try this and let me know if it fixes the issue:

conda uninstall samtools
conda update --all
conda install samtools

Yes it work now thanks a lot

A small educational note: if an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they all work. If an answer was not really helpful or did not work, provide detailed feedback so others know not to use that answer.

upvote_bookmark_accept

How long did it take you to uninstall? Because I got the message "solving environment: /" with the spinning forward slash for a long time.

Hello. Step1: After "conda uninstall samtools" - 10 minutes. I get message: "The following package will be UPDATED" and I agree and so i entered "y". Step2: "conda update --all After i get message:" Downloading and Extracting Packages" - python-3.9.12 Step3: "conda install samtools" Congratilations!

Log in to answer this question.