免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1783 | 回复: 3
打印 上一主题 下一主题

[网络配置] LVS集群 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-12-19 11:35 |只看该作者 |倒序浏览
make -C libipvs
make[1]: Entering directory `/root/ipvsadm-1.26/libipvs'
gcc -Wall -Wunused -Wstrict-prototypes -g -fPIC -DLIBIPVS_USE_NL  -DHAVE_NET_IP_VS_H -c -o libipvs.o libipvs.c
gcc -Wall -Wunused -Wstrict-prototypes -g -fPIC -DLIBIPVS_USE_NL  -DHAVE_NET_IP_VS_H -c -o ip_vs_nl_policy.o ip_vs_nl_policy.c
ar rv libipvs.a libipvs.o ip_vs_nl_policy.o
ar: creating libipvs.a
a - libipvs.o
a - ip_vs_nl_policy.o
gcc -shared -Wl,-soname,libipvs.so -o libipvs.so libipvs.o ip_vs_nl_policy.o
make[1]: Leaving directory `/root/ipvsadm-1.26/libipvs'
gcc -Wall -Wunused -Wstrict-prototypes -g  -DVERSION=\"1.26\" -DSCHEDULERS=\""rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq"\" -DPE_LIST=\""sip"\"  -DHAVE_NET_IP_VS_H -c -o ipvsadm.o ipvsadm.c
gcc -Wall -Wunused -Wstrict-prototypes -g  -DVERSION=\"1.26\" -DSCHEDULERS=\""rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq"\" -DPE_LIST=\""sip"\"  -DHAVE_NET_IP_VS_H -c -o config_stream.o config_stream.c
gcc -Wall -Wunused -Wstrict-prototypes -g  -DVERSION=\"1.26\" -DSCHEDULERS=\""rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq"\" -DPE_LIST=\""sip"\"  -DHAVE_NET_IP_VS_H -c -o dynamic_array.o dynamic_array.c
gcc -Wall -Wunused -Wstrict-prototypes -g -o ipvsadm ipvsadm.o config_stream.o dynamic_array.o libipvs/libipvs.a  -lnl
ipvsadm.o: In function `parse_options':
/root/ipvsadm-1.26/ipvsadm.c:432: undefined reference to `poptGetContext'
/root/ipvsadm-1.26/ipvsadm.c:435: undefined reference to `poptGetNextOpt'
/root/ipvsadm-1.26/ipvsadm.c:660: undefined reference to `poptBadOption'
/root/ipvsadm-1.26/ipvsadm.c:502: undefined reference to `poptGetNextOpt'
/root/ipvsadm-1.26/ipvsadm.c:667: undefined reference to `poptStrerror'
/root/ipvsadm-1.26/ipvsadm.c:667: undefined reference to `poptBadOption'
/root/ipvsadm-1.26/ipvsadm.c:670: undefined reference to `poptFreeContext'
/root/ipvsadm-1.26/ipvsadm.c:677: undefined reference to `poptGetArg'
/root/ipvsadm-1.26/ipvsadm.c:678: undefined reference to `poptGetArg'
/root/ipvsadm-1.26/ipvsadm.c:679: undefined reference to `poptGetArg'
/root/ipvsadm-1.26/ipvsadm.c:690: undefined reference to `poptGetArg'
/root/ipvsadm-1.26/ipvsadm.c:693: undefined reference to `poptFreeContext'
collect2: ld 返回 1
make: *** [ipvsadm] 错误 1


编译安装ipvsadm出现这样的错误应该如何解决呢?我的模块也加载了。

论坛徽章:
31
CU大牛徽章
日期:2013-03-13 15:15:08CU大牛徽章
日期:2013-05-20 10:46:18CU大牛徽章
日期:2013-05-20 10:46:25CU大牛徽章
日期:2013-05-20 10:46:31CU大牛徽章
日期:2013-05-20 10:46:38CU大牛徽章
日期:2013-05-20 10:46:44CU大牛徽章
日期:2013-09-18 15:16:55CU大牛徽章
日期:2013-09-18 15:18:22CU大牛徽章
日期:2013-09-18 15:18:43CU十二周年纪念徽章
日期:2013-10-24 15:41:34丑牛
日期:2013-12-01 10:11:07水瓶座
日期:2014-01-15 08:47:25
2 [报告]
发表于 2012-12-19 11:46 |只看该作者
没有编译安装过,lz你能否直接安装bin文件?
RH的yum  ubuntu的apt-get

从错误提示上看,应该是你少安装了依赖库。如:***-devel-******.rpm

论坛徽章:
31
CU大牛徽章
日期:2013-03-13 15:15:08CU大牛徽章
日期:2013-05-20 10:46:18CU大牛徽章
日期:2013-05-20 10:46:25CU大牛徽章
日期:2013-05-20 10:46:31CU大牛徽章
日期:2013-05-20 10:46:38CU大牛徽章
日期:2013-05-20 10:46:44CU大牛徽章
日期:2013-09-18 15:16:55CU大牛徽章
日期:2013-09-18 15:18:22CU大牛徽章
日期:2013-09-18 15:18:43CU十二周年纪念徽章
日期:2013-10-24 15:41:34丑牛
日期:2013-12-01 10:11:07水瓶座
日期:2014-01-15 08:47:25
3 [报告]
发表于 2012-12-19 11:48 |只看该作者
  1. [root@media ~]# yum search ipvsadm
  2. Loaded plugins: fastestmirror, security
  3. Repository base is listed more than once in the configuration
  4. Repository updates is listed more than once in the configuration
  5. Repository extras is listed more than once in the configuration
  6. Repository centosplus is listed more than once in the configuration
  7. Repository contrib is listed more than once in the configuration
  8. Loading mirror speeds from cached hostfile
  9. * base: centos.chlux.co.kr
  10. * extras: centos.mirror.cdnetworks.com
  11. * updates: centos.chlux.co.kr
  12. ======================================================= N/S Matched: ipvsadm =======================================================
  13. ipvsadm.x86_64 : Utility to administer the Linux Virtual Server

  14.   Name and summary matches only, use "search all" for everything.
复制代码
lz你可以考虑直接安装bin,目测 你编译出错是少了依赖库。

论坛徽章:
31
CU大牛徽章
日期:2013-03-13 15:15:08CU大牛徽章
日期:2013-05-20 10:46:18CU大牛徽章
日期:2013-05-20 10:46:25CU大牛徽章
日期:2013-05-20 10:46:31CU大牛徽章
日期:2013-05-20 10:46:38CU大牛徽章
日期:2013-05-20 10:46:44CU大牛徽章
日期:2013-09-18 15:16:55CU大牛徽章
日期:2013-09-18 15:18:22CU大牛徽章
日期:2013-09-18 15:18:43CU十二周年纪念徽章
日期:2013-10-24 15:41:34丑牛
日期:2013-12-01 10:11:07水瓶座
日期:2014-01-15 08:47:25
4 [报告]
发表于 2012-12-19 11:50 |只看该作者
抱歉,这个破电脑。

刷新几次刷新不出来。重复发帖了。麻烦版主删除下。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP