通过cygwin命令安装bedtools时出错:致命错误:zlib.h:没有此类文件或目录
我正试图通过Cygwin安装v2.27.0。以下是我尝试过的命令:通过cygwin命令安装bedtools时出错:致命错误:zlib.h:没有此类文件或目录,cygwin,Cygwin,我正试图通过Cygwin安装v2.27.0。以下是我尝试过的命令: $ wget https://github.com/arq5x/bedtools2/releases/download/v2.27.0/bedtools-2.27.0.tar.gz $ tar -zxvf bedtools-2.27.0.tar.gz $ cd bedtools2 $ make 运行最后一个命令时,出现以下错误: *fatal error: zlib.h: No such file or directory
$ wget https://github.com/arq5x/bedtools2/releases/download/v2.27.0/bedtools-2.27.0.tar.gz
$ tar -zxvf bedtools-2.27.0.tar.gz
$ cd bedtools2
$ make
运行最后一个命令时,出现以下错误:
*fatal error: zlib.h: No such file or directory
*#include <zlib.h>*
^
compilation terminated.
make[1]: *** [Makefile:37: ../../../obj//FileRecordMgr.o] Error 1
make: *** [Makefile:187: src/utils/FileRecordTools] Error 2*
Unable to locate package libz-dev
但它不起作用。我得到了以下错误:
*fatal error: zlib.h: No such file or directory
*#include <zlib.h>*
^
compilation terminated.
make[1]: *** [Makefile:37: ../../../obj//FileRecordMgr.o] Error 1
make: *** [Makefile:187: src/utils/FileRecordTools] Error 2*
Unable to locate package libz-dev
注意,我在windows(64位机器)上使用Cygwin终端。非常感谢您的帮助。要安装软件包,请使用安装程序中的
cygwin
,或者在使用apt cyg
要查找包含zlib.h标头的包,请执行以下操作:
$ cygcheck -p include/zlib.h
Found 10 matches for include/zlib.h
...
zlib-devel-1.2.11-1 - zlib-devel: gzip de/compression library (development)
..
所以您需要安装
zlib-devel
谢谢…这很有用!我下载了zlib-devel,它部分起作用。但是,我遇到了另一个错误:coverageFile.cpp:在成员函数“virtual void coverageFile::giveFinalReport(RecordOutputMgr*)”中:coverageFile.cpp:100:46:错误:“asprintf”未在此范围内声明为asprintf(&depthPctString,“%0.7f”,depthPct);我尝试查找asprintf,但找到0个匹配项!感谢您的帮助。asprintf
在标题中声明。它应该在stdio.h
内。未在此范围内声明的
表示编译器调用限制了声明的可见性。通常是由于-std=c99
或类似原因。检查完整日志以获取提示