设为首页收藏本站

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 273|回复: 0

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

[复制链接]

签到天数: 2537 天

[LV.Master]伴坛终老

 成长值: 22425
发表于 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, 2018/12/14 04:24 , Processed in 0.238803 second(s), 41 queries , Gzip On, Memcache On.

Powered by itzmx!

© 2011-2018 sakura

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