001、问题
cd-hit 编译报错如下:
cdhit-common.h:39:17: fatal error: zlib.h: No such file or directory
002、解决方法
yum -y install zlib zlib-devel
003、验证
[root@pc1 cd-hit-v4.8.1-2019-0228]# make g++ -fopenmp -DWITH_ZLIB -O2 cdhit-common.c++ -c g++ -fopenmp -DWITH_ZLIB -O2 cdhit-utility.c++ -c g++ -fopenmp -DWITH_ZLIB -O2 cdhit.c++ -c g++ -fopenmp -DWITH_ZLIB -O2 cdhit.o cdhit-common.o cdhit-utility.o -lz -o cd-hit g++ -fopenmp -DWITH_ZLIB -O2 cdhit-est.c++ -c g++ -fopenmp -DWITH_ZLIB -O2 cdhit-est.o cdhit-common.o cdhit-utility.o -lz -o cd-hit-est g++ -fopenmp -DWITH_ZLIB -O2 cdhit-2d.c++ -c g++ -fopenmp -DWITH_ZLIB -O2 cdhit-2d.o cdhit-common.o cdhit-utility.o -lz -o cd-hit-2d g++ -fopenmp -DWITH_ZLIB -O2 cdhit-est-2d.c++ -c g++ -fopenmp -DWITH_ZLIB -O2 cdhit-est-2d.o cdhit-common.o cdhit-utility.o -lz -o cd-hit-est-2d g++ -fopenmp -DWITH_ZLIB -O2 cdhit-div.c++ -c g++ -fopenmp -DWITH_ZLIB -O2 cdhit-div.o cdhit-common.o cdhit-utility.o -lz -o cd-hit-div g++ -fopenmp -DWITH_ZLIB -O2 cdhit-454.c++ -c g++ -fopenmp -DWITH_ZLIB -O2 cdhit-454.o cdhit-common.o cdhit-utility.o -lz -o cd-hit-454
。
参考:https://blog.csdn.net/wu10188/article/details/130846491
标签:39,17,No,++,ZLIB,O2,fopenmp,DWITH,cdhit From: https://www.cnblogs.com/liujiaxin2018/p/17763956.html