linux下能够指定位置安装libevent,但是MAKE时报错,求解? 20
make[2]:Enteringdirectory`/home/libevent-2.0.20-stable'/bin/sh./libtool--tag=CC--mode...
make[2]: Entering directory `/home/libevent-2.0.20-stable'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./compat -I./include -I./include -g -O2 -Wall -fno-strict-aliasing -MT event.lo -MD -MP -MF .deps/event.Tpo -c -o event.lo event.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./compat -I./include -I./include -g -O2 -Wall -fno-strict-aliasing -MT event.lo -MD -MP -MF .deps/event.Tpo -c event.c -fPIC -DPIC -o .libs/event.o
event.c:54:20: error: string.h: No such file or directory
event.c: In function 'event_debug_map_HT_GROW':
event.c:193: warning: implicit declaration of function 'memset'
event.c:193: warning: incompatible implicit declaration of built-in function 'memset'
event.c:193: warning: incompatible implicit declaration of built-in function 'memset'
event.c: In function 'event_config_is_avoided_method':
event.c:464: warning: implicit declaration of function 'strcmp'
event.c: In function 'event_deferred_cb_queue_init':
event.c:495: warning: incompatible implicit declaration of built-in function 'memset'
event.c: In function 'event_base_init_common_timeout':
event.c:1188: warning: implicit declaration of function 'memcpy'
event.c:1188: warning: incompatible implicit declaration of built-in function 'memcpy'
event.c: In function 'event_deferred_cb_init':
event.c:2323: warning: incompatible implicit declaration of built-in function 'memset'
event.c: In function 'event_mm_calloc_':
event.c:2651: warning: incompatible implicit declaration of built-in function 'memset'
event.c: In function 'event_mm_strdup_':
event.c:2661: warning: implicit declaration of function 'strlen'
event.c:2661: warning: incompatible implicit declaration of built-in function 'strlen'
event.c:2664: warning: incompatible implicit declaration of built-in function 'memcpy'
event.c:2670: warning: implicit declaration of function 'strdup'
event.c:2670: warning: incompatible implicit declaration of built-in function 'strdup'
make[2]: *** [event.lo] Error 1
make[2]: Leaving directory `/home/libevent-2.0.20-stable'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/libevent-2.0.20-stable'
make: *** [all] Error 2 展开
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./compat -I./include -I./include -g -O2 -Wall -fno-strict-aliasing -MT event.lo -MD -MP -MF .deps/event.Tpo -c -o event.lo event.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./compat -I./include -I./include -g -O2 -Wall -fno-strict-aliasing -MT event.lo -MD -MP -MF .deps/event.Tpo -c event.c -fPIC -DPIC -o .libs/event.o
event.c:54:20: error: string.h: No such file or directory
event.c: In function 'event_debug_map_HT_GROW':
event.c:193: warning: implicit declaration of function 'memset'
event.c:193: warning: incompatible implicit declaration of built-in function 'memset'
event.c:193: warning: incompatible implicit declaration of built-in function 'memset'
event.c: In function 'event_config_is_avoided_method':
event.c:464: warning: implicit declaration of function 'strcmp'
event.c: In function 'event_deferred_cb_queue_init':
event.c:495: warning: incompatible implicit declaration of built-in function 'memset'
event.c: In function 'event_base_init_common_timeout':
event.c:1188: warning: implicit declaration of function 'memcpy'
event.c:1188: warning: incompatible implicit declaration of built-in function 'memcpy'
event.c: In function 'event_deferred_cb_init':
event.c:2323: warning: incompatible implicit declaration of built-in function 'memset'
event.c: In function 'event_mm_calloc_':
event.c:2651: warning: incompatible implicit declaration of built-in function 'memset'
event.c: In function 'event_mm_strdup_':
event.c:2661: warning: implicit declaration of function 'strlen'
event.c:2661: warning: incompatible implicit declaration of built-in function 'strlen'
event.c:2664: warning: incompatible implicit declaration of built-in function 'memcpy'
event.c:2670: warning: implicit declaration of function 'strdup'
event.c:2670: warning: incompatible implicit declaration of built-in function 'strdup'
make[2]: *** [event.lo] Error 1
make[2]: Leaving directory `/home/libevent-2.0.20-stable'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/libevent-2.0.20-stable'
make: *** [all] Error 2 展开
3个回答
展开全部
event.c:54:20: error: string.h: No such file or directory
开发环境没装全?还是你的系统已经挂了。
开发环境没装全?还是你的系统已经挂了。
追问
不是的,我把之前系统自带的LIBEVENT给删了,想重新再装一下,现在就是MAKE不过去
追答
自带 libevent 和你重新装是两个概念。
如果你要是想重装,最好的选择应该是用系统的安装盘重装这个软件包,而不是用源代码装。
这是两个过程和两个结果,不是一个东西。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你看看error1这里,make[2]: *** [event.lo] Error 1 可能缺少event.lo,把它安装上再试试,error2也一样
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
在中国黑客联盟下砸视频
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询