1

我已经寻找了几个小时,似乎无法找到我的问题的答案。我已经使用来自 zlib.net 的源代码安装了 zlib,mingw32-make -fwin32/Makefile.gcc && mingw32-make install -fwin32/Makefile.gcc就像它在 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'

但是后来我尝试通过编译 RSEM 版本 1.3.1 mingw32-make,由于某种原因,当 zlib.h 文件实际上位于文件夹中时,mingw 无法找到它C:\MinGW\include。我的 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
4

0 回答 0