设为首页收藏本站

ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

搜索
查看: 1418|回复: 0

kangle 3.5.12源代码编译报错的解决方法 libaio异步io

[复制链接]
 成长值: 345

签到天数: 4740 天

[LV.Master]伴坛终老

发表于 2018/1/19 17:45 | 显示全部楼层 |阅读模式 |Google Chrome 63.0.3239.132|Windows 10
天涯海角搜一下: 百度 谷歌 360 搜狗 有道 雅虎 必应 即刻
报错如下
checking for timegm... yes
checking for accept4... yes
checking for writev... yes
checking for iconv_open in -liconv... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating extworker/Makefile
config.status: creating module/webdav/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
[root@test kangle-3.5.12.11]# make -j 4
Making all in src
make[1]: Entering directory `/root/kangle-3.5.12.11/src'
make  all-am
make[2]: Entering directory `/root/kangle-3.5.12.11/src'
depbase=`echo cache.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        g++ -DHAVE_CONFIG_H -I.    -I../module/access -I../module/whm -O2 -g -DNDEBUG  -D_REENTRANT -DLINUX -D_LARGE_FILE -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -MT cache.o -MD -MP -MF $depbase.Tpo -c -o cache.o cache.cpp &&\
        mv -f $depbase.Tpo $depbase.Po
depbase=`echo KConfig.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        g++ -DHAVE_CONFIG_H -I.    -I../module/access -I../module/whm -O2 -g -DNDEBUG  -D_REENTRANT -DLINUX -D_LARGE_FILE -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -MT KConfig.o -MD -MP -MF $depbase.Tpo -c -o KConfig.o KConfig.cpp &&\
        mv -f $depbase.Tpo $depbase.Po
depbase=`echo forwin32.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        g++ -DHAVE_CONFIG_H -I.    -I../module/access -I../module/whm -O2 -g -DNDEBUG  -D_REENTRANT -DLINUX -D_LARGE_FILE -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -MT forwin32.o -MD -MP -MF $depbase.Tpo -c -o forwin32.o forwin32.cpp &&\
        mv -f $depbase.Tpo $depbase.Po
depbase=`echo garbage_c.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        g++ -DHAVE_CONFIG_H -I.    -I../module/access -I../module/whm -O2 -g -DNDEBUG  -D_REENTRANT -DLINUX -D_LARGE_FILE -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -MT garbage_c.o -MD -MP -MF $depbase.Tpo -c -o garbage_c.o garbage_c.cpp &&\
        mv -f $depbase.Tpo $depbase.Po
depbase=`echo HttpCore.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        g++ -DHAVE_CONFIG_H -I.    -I../module/access -I../module/whm -O2 -g -DNDEBUG  -D_REENTRANT -DLINUX -D_LARGE_FILE -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -MT HttpCore.o -MD -MP -MF $depbase.Tpo -c -o HttpCore.o HttpCore.cpp &&\
        mv -f $depbase.Tpo $depbase.Po
In file included from KDiskCache.h:8,
                 from KHttpObject.h:10,
                 from KAcl.h:28,
                 from KAccess.h:23,
                 from KTable.h:30,
                 from http.h:38,
                 from cache.cpp:29:
KAsyncFile.h:6:20: error: libaio.h: No such file or directory
In file included from KDiskCache.h:8,
                 from KHttpObject.h:10,
                 from KAcl.h:28,
                 from KModelManager.h:5,
                 from KConfig.cpp:37:
KAsyncFile.h:6:20: error: libaio.h: No such file or directory
In file included from KDiskCache.h:8,
                 from KHttpObject.h:10,
                 from cache.h:32,
                 from garbage_c.cpp:29:
KAsyncFile.h:6:20: error: libaio.h: No such file or directory
In file included from KDiskCache.h:8,
                 from KHttpObject.h:10,
                 from cache.h:32,
                 from HttpCore.cpp:30:
KAsyncFile.h:6:20: error: libaio.h: No such file or directory
In file included from KDiskCache.h:8,
                 from KHttpObject.h:10,
                 from KAcl.h:28,
                 from KAccess.h:23,
                 from KTable.h:30,
                 from http.h:38,
                 from cache.cpp:29:
KAsyncFile.h:21: error: field ‘iocb’ has incomplete type
In file included from KDiskCache.h:8,
                 from KHttpObject.h:10,
                 from cache.h:32,
                 from garbage_c.cpp:29:
KAsyncFile.h:21: error: field ‘iocb’ has incomplete type
In file included from KDiskCache.h:8,
                 from KHttpObject.h:10,
                 from KAcl.h:28,
                 from KModelManager.h:5,
                 from KConfig.cpp:37:
KAsyncFile.h:21: error: field ‘iocb’ has incomplete type
In file included from KDiskCache.h:8,
                 from KHttpObject.h:10,
                 from cache.h:32,
                 from HttpCore.cpp:30:
KAsyncFile.h:21: error: field ‘iocb’ has incomplete type
make[2]: *** [cache.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [garbage_c.o] Error 1
make[2]: *** [HttpCore.o] Error 1
make[2]: *** [KConfig.o] Error 1
make[2]: Leaving directory `/root/kangle-3.5.12.11/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/kangle-3.5.12.11/src'
make: *** [all-recursive] Error 1
[root@test kangle-3.5.12.11]# make install
Making install in src
make[1]: Entering directory `/root/kangle-3.5.12.11/src'
depbase=`echo cache.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        g++ -DHAVE_CONFIG_H -I.    -I../module/access -I../module/whm -O2 -g -DNDEBUG  -D_REENTRANT -DLINUX -D_LARGE_FILE -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -MT cache.o -MD -MP -MF $depbase.Tpo -c -o cache.o cache.cpp &&\
        mv -f $depbase.Tpo $depbase.Po
In file included from KDiskCache.h:8,
                 from KHttpObject.h:10,
                 from KAcl.h:28,
                 from KAccess.h:23,
                 from KTable.h:30,
                 from http.h:38,
                 from cache.cpp:29:
KAsyncFile.h:6:20: error: libaio.h: No such file or directory
In file included from KDiskCache.h:8,
                 from KHttpObject.h:10,
                 from KAcl.h:28,
                 from KAccess.h:23,
                 from KTable.h:30,
                 from http.h:38,
                 from cache.cpp:29:
KAsyncFile.h:21: error: field ‘iocb’ has incomplete type
make[1]: *** [cache.o] Error 1
make[1]: Leaving directory `/root/kangle-3.5.12.11/src'
make: *** [install-recursive] Error 1
[root@test kangle-3.5.12.11]# /vhs/kangle/bin/kangle
-bash: /vhs/kangle/bin/kangle: No such file or directory

  1. yum -y install libaio-devel
复制代码

安装这个运行库

欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册论坛 新浪微博账号登陆用百度帐号登录

本版积分规则

手机版|Archiver|Mail me|网站地图|IT技术交流论坛 ( 闽ICP备13013206号-7 )

GMT+8, 2024/12/26 19:56 , Processed in 0.128917 second(s), 21 queries , MemCache On.

Powered by itzmx! X3.4

© 2011- sakura

快速回复 返回顶部 返回列表