提前下载好samtools安装包
在安装目录内执行:
./configure
make
make install
过程中遇到的问题:
(1)error: curses development files not found
sudo apt-get install libncurses5-dev
(2)error: libbzip2 development files not found
sudo apt-get install libbz2-dev
(3)error: liblzma development files not found
sudo apt-get install liblzma-dev
(4)configure: WARNING: libcurl not enabled: library not found
sudo apt-get install libcurl4-openssl-dev
(5)configure: WARNING: S3 support not enabled: requires SSL development files
sudo apt-get install apache2
sudo apt-get install libssl-dev
(6) error: ‘SAMTOOLS_VERSION’ undeclared (first use in this function)
将samtools-1.x目录中的version.h复制到misc目录中
来源:oschina
链接:https://my.oschina.net/u/3732258/blog/4304374