本家様 https://github.com/samtools/samtools
事前に htslib https://github.com/samtools/htslib をインストールします.
[root@centos7 ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@centos7 ~]# yum install devtoolset-11 -y
[root@centos7 ~]# source scl_source enable devtoolset-11
[root@centos7 ~]# cd /apps/src/
[root@centos7 src]# git clone --recurse-submodules https://github.com/samtools/htslib
[root@centos7 src]# cd htslib/
[root@centos7 htslib]# autoreconf -i
[root@centos7 htslib]# ./configure --prefix=/apps/local
[root@centos7 htslib]# make -j 20 && make install
その後に samtools を入れます.
[root@centos7 ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@centos7 ~]#
[root@centos7 ~]# cd /apps/src/
[root@centos7 src]# git clone https://github.com/samtools/samtools
[root@centos7 src]# cd samtools/
[root@centos7 samtools]# autoheader
configure.ac:64: warning: AC_CONFIG_SUBDIRS: you should use literals
../../lib/autoconf/status.m4:1097: AC_CONFIG_SUBDIRS is expanded from...
m4/ax_with_htslib.m4:55: AX_WITH_HTSLIB is expanded from...
configure.ac:64: the top level
[root@centos7 samtools]# autoconf -Wno-syntax
[root@centos7 samtools]# ./configure --prefix=/apps/local
[root@centos7 samtools]# make -j 20 && make install
[root@centos7 samtools]# ls /apps/local/bin/
ace2sam bowtie2sam.pl interpolate_sam.pl md5sum-lite psl2sam.pl seq_cache_populate.pl wgsim_eval.pl
annot-tsv export2sam.pl maq2sam-long novo2sam.pl sam2vcf.pl soap2sam.pl zoom2sam.pl
bgzip fasta-sanitize.pl maq2sam-short plot-ampliconstats samtools tabix
blast2sam.pl htsfile md5fa plot-bamstats samtools.pl wgsim
[root@centos7 samtools]#