Chinaunix首页 | 论坛 | 博客
  • 博客访问: 227789
  • 博文数量: 24
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 1007
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-19 12:10
个人简介

人若不能在内心找到安宁,在哪里也无济于事。

文章分类

全部博文(24)

文章存档

2013年(24)

我的朋友

分类: 系统运维

2013-08-13 16:04:13

1.源码安装ipvsadm时报错:
make -C libipvs
make[1]: Entering directory `/root/ipvsadm-1.26/libipvs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/ipvsadm-1.26/libipvs'
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

解决方法:
# rpm -ivh popt-static-1.13-7.el6.x86_64.rpm            

2.安装keepalived,  ./configure时报错: 
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
configure: error: 
  !!! OpenSSL is not properly installed on your system. !!!
  !!! Can not include OpenSSL headers files.            !!!

解决方法:
# yum install openssl-devel -y

3. keepalived, ./configure的结果
Keepalived configuration
------------------------
Keepalived version       : 1.2.0
Compiler                 : gcc
Compiler flags           : -g -O2
Extra Lib                : -lpopt -lssl -lcrypto 
Use IPVS Framework       : No          
IPVS sync daemon support : No
Use VRRP Framework       : Yes
Use Debug flags          : No

上面两条状态为No的话,将不支持lvs, 导致的结果是全部配置好后,ipvsadm -ln无论怎样都不显示结果。

解决方法:
./configure --with-kernel-dir=/usr/src/kernels/2.6.32-279.el6.x86_64/  
加上--with-kernel-dir选项,再重新configure

阅读(4101) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~