2 bingfengyiqie bingfengyiqie 于 2014.08.04 19:46 提问

搭建apache+svn 环境,当安装serf-1.3.3.tar.bz2 时遇到下面的问题?跪求高手指教!

[root@server0 serf-1.3.3]# scons APR=/usr/local/apr/bin/apr-1-config APU=/usr/local/apr/bin/apu-1-config OPENSSL=/usr/loccal/ssl
buckets/deflate_buckets.c
buckets/deflate_buckets.c:18:18: error: zlib.h: No such file or directory
buckets/deflate_buckets.c:54: error: expected specifier-qualifier-list before 'z_stream'
buckets/deflate_buckets.c: In function 'serf_bucket_deflate_create':
buckets/deflate_buckets.c:90: error: 'deflate_context_t' has no member named 'stream_status'
buckets/deflate_buckets.c:93: error: 'deflate_context_t' has no member named 'crc'
buckets/deflate_buckets.c:95: error: 'deflate_context_t' has no member named 'zstream'
buckets/deflate_buckets.c:95: error: 'deflate_context_t' has no member named 'zstream'
buckets/deflate_buckets.c:111: error: 'deflate_context_t' has no member named 'stream_left'
buckets/deflate_buckets.c:111: error: 'deflate_context_t' has no member named 'stream_size'
buckets/deflate_buckets.c:113: error: 'deflate_context_t' has no member named 'windowSize'
buckets/deflate_buckets.c:114: error: 'deflate_context_t' has no member named 'memLevel'
buckets/deflate_buckets.c:115: error: 'deflate_context_t' has no member named 'bufferSize'
buckets/deflate_buckets.c: In function 'serf_deflate_destroy_and_data':
buckets/deflate_buckets.c:126: warning: implicit declaration of function 'inflateEnd'
buckets/deflate_buckets.c:126: error: 'deflate_context_t' has no member named 'zstream'
buckets/deflate_buckets.c: In function 'serf_deflate_read':
buckets/deflate_buckets.c:154: error: 'deflate_context_t' has no member named 'stream_left'
buckets/deflate_buckets.c:161: error: 'deflate_context_t' has no member named 'hdr_buffer'
buckets/deflate_buckets.c:161: error: 'deflate_context_t' has no member named 'stream_size'
buckets/deflate_buckets.c:161: error: 'deflate_context_t' has no member named 'stream_left'
buckets/deflate_buckets.c:164: error: 'deflate_context_t' has no member named 'stream_left'
buckets/deflate_buckets.c:166: error: 'deflate_context_t' has no member named 'stream_left'
buckets/deflate_buckets.c:179: error: 'deflate_context_t' has no member named 'hdr_buffer'
buckets/deflate_buckets.c:180: error: 'deflate_context_t' has no member named 'hdr_buffer'

1个回答

zyjc168
zyjc168   2015.02.25 12:36

error: zlib.h: No such file or directory
没有zlib-devel库文件
yum install zilb-devel试试

Csdn user default icon
上传中...
上传图片
插入图片