1. Go to the website http://sourceforge.net/projects/ipsec-tools/download the latest IPSec tool 0.8 source code compressed package
2. decompress the package and run the./configure command.
3. Make
4. Make install
Complete
3. Many errors will be prompted during the make process. refer to the following solution:
1. Checking OpenSSL version... too old
Configure: Error: OpenSSL version must be 0.9.6 or higher. Aborting.
The above error occurs when you execute #./configure -- prefix =/root/myipsec.
View installed OpenSSL versions
# OpenSSL version
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
Solution: Install OpenSSL-devel
# Yum-y install OpenSSL-devel
2. Configure: Error: unable to find linux-2.6 kernel headers. Aborting.
Solution: the kernel header file is required. The kernel source code of 2.6.34 is used here.
# Cp linux-2.6.34.tar.bz2/usr/src
# Cd/usr/src
# Tar xjvf linux-2.6.34.tar.bz2
# Music linux-2.6.34 Linux
3. undefined reference to 'yywre'
# Make errors
Solution: Install flex
# Yum-y install flex bison
4 ../src/include-glibc/Linux/swab. h: 6: 22: Error: ASM/swab. h: no such file or
Directory
# The following error occurs during make:
In file encoded ded 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
Solution: Copy swab. h
# Mkdir/usr/src/kernel source code directory/include/ASM
# Cp/usr/src/kernel source code directory/ARCH/x86/include/ASM/swab. h/usr/src/kernel source code directory/include/ASM
# Cp/usr/src/kernel source code directory/ARCH/x86/include/ASM/swab. h/usr/include/ASM
5. if the preceding error occurs, modify the configure file and change cflags = "-g-O2" to cflags = "-g-O2-fno-strict-aliasing ", and then re-configure.