首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

系统include文件库里缺少event.h文件,但是编译的时候需要用,怎么处理

2013-01-01 
系统include文件库里缺少event.h文件,但是编译的时候需要用,怎么办?我用libevent写了一个简单的服务端,编

系统include文件库里缺少event.h文件,但是编译的时候需要用,怎么办?
我用libevent写了一个简单的服务端,编译的时候需要用到event.h头文件,
提示:
event.h: 没有那个文件或目录

系统/usr/include下找了半天没有,编译通不过,怎么办?
安装的是linevent-1.4.13-stable-1
[解决办法]
我的系统里有个event.h 不过估计不是你要的那个
[root@CentOS ~]# find /usr/include/ -name "event.h"
/usr/include/isc/event.h
[root@CentOS ~]# rpm -qf /usr/include/isc/event.h
bind-devel-9.3.6-4.P1.el5_4.2
[解决办法]
装个包吧 就象主席说的那样做

热点排行