IPSEC TOOL 0.8在rhel6和centos6.3中的配置安裝
2.解壓後 ./configure執行
3.make
4.make install
完成
3.make過程中會提示很多錯誤,參考如下解決:
1. checking openssl version... too old
configure: error: OpenSSL version must be 0.9.6 or higher. Aborting.
執行#./configure --prefix=/root/myipsec 的時候,出現上面的錯誤
檢視已安裝的openssl版本
# openssl version
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
解決方法: 安裝openssl-devel
#yum -y install openssl-devel
2.configure: error: Unable to find linux-2.6 kernel headers. Aborting.
解決方法:這裡需要核心標頭檔案,這裡使用2.6.34版本核心原始碼
#cp linux-2.6.34.tar.bz2 /usr/src
#cd /usr/src
#tar xjvf linux-2.6.34.tar.bz2
#mv linux-2.6.34 linux
3. undefined reference to `yywrap'
#make 的時候出現上面的錯誤
解決方法: 安裝flex
#yum -y install flex bison
4.../../src/include-glibc/linux/swab.h:6:22: error: asm/swab.h: No such file or
directory
#make 的時候出現下面的錯誤:
In file included from ../../src/include-glibc/linux/byteorder/little_endian.h:12,
from /usr/include/asm/byteorder.h:53,
from ../../src/include-glibc/linux/ip.h:20,
from isakmp.c:115:
../../src/include-glibc/linux/swab.h:6:22: error: asm/swab.h: No such file or
directory
make[4]: *** [isakmp.o] Error 1
make[4]: Leaving directory `/root/ipsec-tools-0.7.2/src/racoon'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/ipsec-tools-0.7.2/src/racoon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/ipsec-tools-0.7.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ipsec-tools-0.7.2'
make: *** [all] Error 2
解決方法: 拷貝swab.h
#mkdir /usr/src/核心原始碼目錄/include/asm
#cp /usr/src/核心原始碼目錄/arch/x86/include/asm/swab.h /usr/src/核心原始碼目錄/include/asm
#cp /usr/src/核心原始碼目錄/arch/x86/include/asm/swab.h /usr/include/asm
5.出現上面錯誤,需要修改configure檔案,將裡面的CFLAGS=“-g -O2”修改為CFLAGS="-g -O2 -fno-strict-aliasing",然後重新configure來過。