存档

2012年8月 的存档

编译keepalived时报configure: error: Popt libraries is required

2012年8月10日 没有评论

问题:

checking for MD5_Init in -lcrypto… yes
checking for SSL_CTX_new in -lssl… yes
checking for poptGetContext in -lpopt… no
configure: error: Popt libraries is required

 

解决:

yum install  popt-devel -y

分类: linux 标签:

编译keepalived时报[libipvs.o] Error 1

2012年8月10日 没有评论

make[2]: Leaving directory /data/xyws_sa/keepalived-1.2.4/keepalived/vrrp'
make[2]: Entering directory
/data/xyws_sa/keepalived-1.2.4/keepalived/libipvs-2.6′
gcc -g -O2 -I/usr/src/linux/include -I/usr/src/linux/include -DLIBIPVS_DONTUSE_NL -Wall -Wunused -c -o libipvs.o libipvs.c
libipvs.c:882: error: expected ‘)’ before ‘fwmark’
libipvs.c: In function ‘ipvs_strerror’:
libipvs.c:1099: error: ‘ipvs_get_service’ undeclared (first use in this function)
libipvs.c:1099: error: (Each undeclared identifier is reported only once
libipvs.c:1099: error: for each function it appears in.)
make[2]: *** [libipvs.o] Error 1
make[2]: Leaving directory /data/xyws_sa/keepalived-1.2.4/keepalived/libipvs-2.6'
make[1]: *** [all] Error 1
make[1]: Leaving directory
/data/xyws_sa/keepalived-1.2.4/keepalived’
make: *** [all] Error 2

 

 

解决办法:

[root@woyoo keepalived-1.2.4]# ln -s /usr/src/kernels/2.6.32-220.el6.x86_64/ /usr/src/linux
[root@woyoo keepalived-1.2.4]# yum install libnl* libpopt* popt-static

然后make 通过

 

分类: linux 标签: