Configure and install IPSec tool 0.8 in rhel6 and centos6.3

Source: Internet
Author: User
Tags install openssl openssl version

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.