【发布时间】:2019-01-23 23:30:47
【问题描述】:
使用 CentOS 7。 安装了zlib-devel,但在尝试安装软件时仍然出现以下错误。
> make
make -C lib/utils libutils.a
make[1]: Entering directory '/common/apps/biscuit/lib/utils'
gcc -c -Wall -O2 wzvcf.c -o wzvcf.o
In file included from wzvcf.h:29:0,
from wzvcf.c:1:
wzio.h:4:10: fatal error: zlib.h: No such file or directory
#include <zlib.h>
^~~~~~~~
compilation terminated.
make[1]: *** [Makefile:17: wzvcf.o] Error 1
make[1]: Leaving directory '/common/apps/biscuit/lib/utils'
make: *** [Makefile:60: lib/utils/libutils.a] Error 2
还添加了 -I/hpc/apps/zlib/1.2.11/include -I/usr/include 到 Makefile 如下:
CC = gcc
CFLAGS = -W -Wall -finline-functions -fPIC -std=gnu99 -Wno-unused-result -O3 -I/hpc/apps/zlib/1.2.11/include -I/usr/include
CLIB = -lncurses -lpthread -lz -lm
CF_OPTIMIZE = 1
【问题讨论】: