忘记密码   免费注册 查看新帖 |

ChinaUnix.net

  平台 论坛 博客 文库 频道自动化运维 虚拟化 储存备份 C/C++ PHP MySQL 嵌入式 Linux系统
最近访问板块 发新帖
查看: 808 | 回复: 2

[服务应用] keepalived 在centos6.5上编译报错,求助 [复制链接]

论坛徽章:
0
发表于 2018-09-25 12:07 |显示全部楼层
[root@master1 keepalived-2.0.4]# make
Making all in lib
make[1]: Entering directory `/usr/local/src/keepalived-2.0.4/lib'
make  all-am
make[2]: Entering directory `/usr/local/src/keepalived-2.0.4/lib'
make[2]: Leaving directory `/usr/local/src/keepalived-2.0.4/lib'
make[1]: Leaving directory `/usr/local/src/keepalived-2.0.4/lib'
Making all in keepalived
make[1]: Entering directory `/usr/local/src/keepalived-2.0.4/keepalived'
Making all in core
make[2]: Entering directory `/usr/local/src/keepalived-2.0.4/keepalived/core'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/keepalived-2.0.4/keepalived/core'
Making all in vrrp
make[2]: Entering directory `/usr/local/src/keepalived-2.0.4/keepalived/vrrp'
  CC       vrrp_iproute.o
In file included from /usr/include/linux/rtnetlink.h:5,
                 from ./../include/vrrp_iproute.h:34,
                 from vrrp_iproute.c:26:
/usr/include/linux/netlink.h:35: error: expected specifier-qualifier-list before ‘sa_family_t’
make[2]: *** [vrrp_iproute.o] Error 1
make[2]: Leaving directory `/usr/local/src/keepalived-2.0.4/keepalived/vrrp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/keepalived-2.0.4/keepalived'
make: *** [all-recursive] Error 1
[root@master1 keepalived-2.0.4]# rpm -qa|grep libnl3
libnl3-cli-3.2.21-8.el6.x86_64
libnl3-3.2.21-8.el6.x86_64
libnl3-devel-3.2.21-8.el6.x86_64
[root@master1 keepalived-2.0.4]#
configure通过,编译的时候报上面的错误,依赖包基本都安装了,高手帮忙,到底问题在哪里

论坛徽章:
0
发表于 2018-09-25 12:23 |显示全部楼层
自己顶下,路过的帮忙顶下

论坛徽章:
0
发表于 2018-09-29 16:46 |显示全部楼层
可以选择更换yum源的方式安装,epel
高版本keepalived编译安装如果报错,可能是兼容性问题,configure后会输出结果,记得查看下IPVS及VRRP的支持项是否是yes
您需要登录后才可以回帖 登录 | 注册

本版积分规则

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号 北京市公安局海淀分局网监中心备案编号:11010802020122
广播电视节目制作经营许可证(京) 字第1234号 中国互联网协会会员  联系我们:wangnan@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP