生信組學分析中samtools 1.9遇到問題
(base) and1:~ lizicheng$ samtools
dyld: Library not loaded: @rpath/libcrypto.1.0.0.dylib
? Referenced from: /Users/lizicheng/miniconda3/bin/samtools
? Reason: image not found
采用了 conda install samtools 命令安裝了1.9版本,但報錯。我的Mac型號為MacBook Pro (Retina, 13-inch, Early 2015),系統(tǒng)版本為Mojave?10.14.4 (18E226)
搜索了很多方法,也嘗試過 conda remove 命令卸載并安裝低版本,問題仍未得到解決。
最終采用論壇上
https://gist.github.com/aklap/e885721ef15c8668ed0a1dd64d2ea1a7
的方案我最終解決了該問題。
電腦需要預先安裝brew包。官網(wǎng):https://brew.sh/index_zh-cn.html
安裝brew命令如下
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
采用了如下命令解決libcrypto的問題
brew update
brew install openssl
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
安裝過程中我遇到了一定網(wǎng)絡問題,建議掛全局代理梯子下載。


我的報錯經(jīng)歷,僅供各位參考。