vcf安裝的坑

jcfaieng發表於2024-04-04

001、使用conda安裝bcftools, 呼叫報錯如下:

[root@PC1 ~]# conda install bcftools -c bioconda      ## conda安裝
[root@PC1 ~]# bcftools                                ## 呼叫測試

002、解決方法1

[root@PC1 ~]# conda remove bcftools -y       ## 解除安裝已安裝bcftools
[root@PC1 ~]# conda install -c bioconda -c conda-forge bcftools=1.15.1 -y    ## 指定版本安裝

003、測試bcftolls

複製程式碼
[root@PC1 ~]# bcftools --version           ## 可以正常呼叫
bcftools 1.15.1
Using htslib 1.16
Copyright (C) 2022 Genome Research Ltd.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
複製程式碼

004、解決方法2

a、

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

b、

複製程式碼
[root@PC1 ~]# find ~ -name "libcrypto.so*"      ## 查詢檔案位置
/root/anaconda3/pkgs/openssl-1.1.1t-h7f8727e_0/lib/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
/root/anaconda3/pkgs/openssl-1.1.1u-h7f8727e_0/lib/libcrypto.so.1.1
/root/anaconda3/lib/libcrypto.so
/root/anaconda3/lib/libcrypto.so.1.1                    ## 建立軟連結
[root@PC1 ~]# ln -s /root/anaconda3/lib/libcrypto.so.1.1 /root/anaconda3/lib/libcrypto.so.1.0.0
複製程式碼
複製程式碼
[root@PC1 ~]# find ~ -name "libcrypto.so*"     ## 再次查詢, 軟連結建立成功
/root/anaconda3/pkgs/openssl-1.1.1t-h7f8727e_0/lib/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
/root/anaconda3/pkgs/openssl-1.1.1u-h7f8727e_0/lib/libcrypto.so.1.1
/root/anaconda3/lib/libcrypto.so.1.0.0
/root/anaconda3/lib/libcrypto.so
/root/anaconda3/lib/libcrypto.so.1.1
複製程式碼

c、呼叫bcftools測試

複製程式碼
[root@PC1 ~]# 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.
複製程式碼

轉載自:https://www.cnblogs.com/liujiaxin2018/p/17594569.html

相關文章