bcftools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object

发布时间 2023-07-20 20:16:39作者: 小鲨鱼2018

 

001、问题

[root@PC1 home]# bcftools
bcftools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory

 

002、解决方法

[root@PC1 home]# find / -user root -name "libcrypto.so.*"     ## 查找库文件
/root/anaconda3/pkgs/openssl-1.1.1t-h7f8727e_0/lib/libcrypto.so.1.1
/root/anaconda3/pkgs/openssl-1.1.1u-h7f8727e_0/lib/libcrypto.so.1.1
/root/anaconda3/lib/libcrypto.so.1.1
/usr/lib64/libcrypto.so.1.0.2k
/usr/lib64/libcrypto.so.10
[root@PC1 home]# ln -s /root/anaconda3/lib/libcrypto.so.1.1 /root/anaconda3/lib/libcrypto.so.1.0.0  ## 建立软链接
[root@PC1 home]# find / -user root -name "libcrypto.so.1.0.0"      ## 查找确认
/root/anaconda3/lib/libcrypto.so.1.0.0

 

003、测试bcftools命令

[root@PC1 home]# bcftools --version      ## 版本
bcftools 1.8
Using htslib 1.8
Copyright (C) 2016 Genome Research Ltd.
License Expat: The MIT/Expat license
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[root@PC1 home]# bcftools               ## 调用

Program: bcftools (Tools for variant calling and manipulating VCFs and BCFs)
Version: 1.8 (using htslib 1.8)

Usage:   bcftools [--version|--version-only] [--help] <command> <argument>

Commands: