samtools依赖HTSlib,无root安装HTSlib往往报下面错误
checking for zlib.h... no
checking for inflate in -lz... no
configure: error: zlib development files not found
HTSlib uses compression routines from the zlib library http://zlib.net.
Building HTSlib requires zlib development files to be installed on the build
machine; you may need to ensure a package such as zlib1g-dev (on Debian or
Ubuntu Linux) or zlib-devel (on RPM-based Linux distributions or Cygwin)
is installed.
FAILED. This error must be resolved in order to build HTSlib successfully.
HTSlib安装需要很多系统依赖,上面的问题是出在系统没有安装zlib,这类安装往往需要root权限,比如yum install zlib-devel等。
如果没有root权限,可以conda解决:
#创建一个干净的htslib