美文网首页
macOS samtools安装遇到的dyld: Library

macOS samtools安装遇到的dyld: Library

作者: 就是大灯不用装 | 来源:发表于2019-04-04 14:57 被阅读0次

    生信组学分析中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),系统版本为Mojave 10.14.4 (18E226)

    搜索了很多方法,也尝试过 conda remove 命令卸载并安装低版本,问题仍未得到解决。

    最终采用论坛上

    https://gist.github.com/aklap/e885721ef15c8668ed0a1dd64d2ea1a7

    的方案我最终解决了该问题。

    电脑需要预先安装brew包。官网: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/

    安装过程中我遇到了一定网络问题,建议挂全局代理梯子下载。

    遇到网络下载问题报错 执行命令后成功运行samtools1.9

    我的报错经历,仅供各位参考。

    相关文章

      网友评论

          本文标题:macOS samtools安装遇到的dyld: Library

          本文链接:https://www.haomeiwen.com/subject/lcalbqtx.html