samtools: error while loading shared libraries: libcrypto.so.1.0.0

Samtools 1.9をcondaで入れたら、下記のエラーを吐き、動かなかった。

$ samtools
samtools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory

condaで入れる際のchannelsの順番を入れ替えると、治る。conda-forgeがopensslを1.1から1.0にダウングレードしてくれるのが効いている模様。
https://github.com/bioconda/bioconda-recipes/issues/12100

$ conda config --get channels
--add channels 'conda-forge'   # lowest priority
--add channels 'r'
--add channels 'bioconda'
--add channels 'defaults'   # highest priority

$ conda config --add channels bioconda
Warning: 'bioconda' already in 'channels' list, moving to the top

$ conda config --add channels conda-forge
Warning: 'conda-forge' already in 'channels' list, moving to the top

$ conda config --get channels
--add channels 'r'   # lowest priority
--add channels 'defaults'
--add channels 'bioconda'
--add channels 'conda-forge'   # highest priority

$ conda uninstall samtools
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.5.11
  latest version: 4.5.12

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: /home/xxxxxx/software/miniconda3/envs/py27

  removed specs: 
    - samtools


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    libcurl-7.63.0             |       hbdb9355_0         543 KB  conda-forge
    curl-7.63.0                |       h74213dd_0         136 KB  conda-forge
    certifi-2018.11.29         |        py27_1000         145 KB  conda-forge
    python-2.7.15              |       h33da82c_4        13.6 MB  conda-forge
    ca-certificates-2018.11.29 |       ha4d7672_0         143 KB  conda-forge
    krb5-1.16.2                |       hbb41f41_0         1.4 MB  conda-forge
    openssl-1.0.2p             |       h470a237_2         3.1 MB  conda-forge
    libssh2-1.8.0              |       h5b517e9_3         225 KB  conda-forge
    ------------------------------------------------------------
                                           Total:        19.3 MB

The following packages will be REMOVED:

    samtools:        1.9-h8ee4bcc_1       bioconda

The following packages will be UPDATED:

    ca-certificates: 2018.03.07-0                  --> 2018.11.29-ha4d7672_0 conda-forge
    certifi:         2018.11.29-py27_0             --> 2018.11.29-py27_1000  conda-forge
    krb5:            1.16.1-h173b8e3_7             --> 1.16.2-hbb41f41_0     conda-forge
    python:          2.7.15-h9bab390_4             --> 2.7.15-h33da82c_4     conda-forge

The following packages will be DOWNGRADED:

    curl:            7.63.0-hbc83047_1000          --> 7.63.0-h74213dd_0     conda-forge
    libcurl:         7.63.0-h20c2e04_1000          --> 7.63.0-hbdb9355_0     conda-forge
    libssh2:         1.8.0-h1ba5d50_4              --> 1.8.0-h5b517e9_3      conda-forge
    openssl:         1.1.1a-h7b6447c_0             --> 1.0.2p-h470a237_2     conda-forge

Proceed ([y]/n)? y


Downloading and Extracting Packages
libcurl-7.63.0       | 543 KB    | ############################################################################################################ | 100% 
curl-7.63.0          | 136 KB    | ############################################################################################################ | 100% 
certifi-2018.11.29   | 145 KB    | ############################################################################################################ | 100% 
python-2.7.15        | 13.6 MB   | ############################################################################################################ | 100% 
ca-certificates-2018 | 143 KB    | ############################################################################################################ | 100% 
krb5-1.16.2          | 1.4 MB    | ############################################################################################################ | 100% 
openssl-1.0.2p       | 3.1 MB    | ############################################################################################################ | 100% 
libssh2-1.8.0        | 225 KB    | ############################################################################################################ | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

$ conda install samtools
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.5.11
  latest version: 4.5.12

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: /home/xxxxxx/software/miniconda3/envs/py27

  added / updated specs: 
    - samtools


The following NEW packages will be INSTALLED:

    samtools: 1.9-h8ee4bcc_1 bioconda

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

$ samtools

Program: samtools (Tools for alignments in the SAM format)
Version: 1.9 (using htslib 1.9)

Usage:   samtools <command> [options]

Commands:
  -- Indexing
     dict           create a sequence dictionary file
     faidx          index/extract FASTA
     fqidx          index/extract FASTQ
     index          index alignment

  -- Editing
     calmd          recalculate MD/NM tags and '=' bases
     fixmate        fix mate information
     reheader       replace BAM header
     targetcut      cut fosmid regions (for fosmid pool only)
     addreplacerg   adds or replaces RG tags
     markdup        mark duplicates

  -- File operations
     collate        shuffle and group alignments by name
     cat            concatenate BAMs
     merge          merge sorted alignments
     mpileup        multi-way pileup
     sort           sort alignment file
     split          splits a file by read group
     quickcheck     quickly check if SAM/BAM/CRAM file appears intact
     fastq          converts a BAM to a FASTQ
     fasta          converts a BAM to a FASTA

  -- Statistics
     bedcov         read depth per BED region
     depth          compute the depth
     flagstat       simple stats
     idxstats       BAM index stats
     phase          phase heterozygotes
     stats          generate stats (former bamcheck)

  -- Viewing
     flags          explain BAM flags
     tview          text alignment viewer
     view           SAM<->BAM<->CRAM conversion
     depad          convert padded BAM to unpadded BAM

channelsの優先順位確認には、ホームディレクトリにある.condarcを覗くのでもよい。

$ cat ~/.condarc
channels:
  - conda-forge
  - bioconda
  - defaults
  - r
スポンサーリンク
blog_L

シェアする

フォローする

スポンサーリンク
blog_L