安装编译环境
yum groupinstall "Development Tools"
编译strongswan
-
Download strongSwan:
wget https://download.strongswan.org/strongswan-x.x.x.tar.bz2
-
Unpack the tarball and navigate into the directory:
tar xjf strongswan-x.x.x.tar.bz2; cd strongswan-x.x.x
-
Configure strongSwan using the available options:
./configure --prefix=/usr --sysconfdir=/etc --<your-options>
-
Build the sources and install the binaries as root:
make sudo make install
执行./configure报错
编译安装gmp
gmp下载The GNU MP Bignum Library
https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz
解压
xz -d gmp-6.2.1.tar.xz
tar -xvf gmp-6.2.1.tar
编译安装
cd gmp-6.2.1
./configure
make
make install
参考
https://docs.strongswan.org/docs/5.9/install/install.html
The GNU MP Bignum Library