使用mingw32-make安装RSEM时,MinGW找不到我已安装的zlib.h和zlib文件

时间:2019-03-02 07:06:43

标签: windows mingw zlib samtools

我已经看了几个小时,似乎无法找到我的问题的答案。我已经使用来自zlib.net的源和mingw32-make -fwin32/Makefile.gcc && mingw32-make install -fwin32/Makefile.gcc来安装zlib,就像在Makefile.gcc文件中说的那样,并尝试通过mingw-get install zlibmingw-get install zlib-dev安装,并且正确的文件得到了进入编译文件夹:

cp -fp zlib.h '/mingw/include'
cp -fp zconf.h '/mingw/include'
cp -fp libz.a '/mingw/lib'

但是随后我尝试通过mingw32-make编译RSEM版本1.3.1,由于某种原因,当mingw确实位于C:\MinGW\include文件夹中时,mingw找不到zlib.h文件。我的MinGW可以在哪里建立机器路径?

这是我的结果:

RSEM-1.3.1$ mingw32-make
g++  -o rsem-extract-reference-transcripts extractRef.o
g++  -o rsem-synthesis-reference-transcripts synthesisRef.o
g++  -o rsem-preref preRef.o
g++  -o rsem-build-read-index buildReadIndex.o
g++  -o rsem-simulate-reads simulation.o
cd samtools-1.3 && ./configure --without-curses && C:/Perl64/site/lib/auto/MinGW/bin/mingw32-make -f Makefile samtools
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking location of HTSlib source tree... htslib-1.3
checking for zlib.h... no
checking for inflate in -lz... no
configure: error: zlib development files not found

Samtools uses compression routines from the zlib library <http://zlib.net>.
Building samtools 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) is installed.

FAILED.  This error must be resolved in order to build samtools successfully.
./configure: line 38: sort: No such file or directory
./configure: line 35: sed: No such file or directory
mingw32-make: *** [samtools-1.3/samtools] Error 1

0 个答案:

没有答案