[问题随记]-在Centos下安装strongswan以及问题解决

首先在strongswan的官网下载安装包并进行解压,得到的文件通过WinScp拷贝到centos下

进入strongswan-4.5.3文件夹,首先安装如下必要的库

基于centos,使用yum进行安装

 yum update
 yum install build-essential
 yum install autoconf
 yum install libgmp-dev
 yum install gperf
 yum install flex
 yum install bison

执行./configure,如果出现如下错误configure: error: GNU Multi Precision library gmp not found,则执行sudo yum install gmp-devel

执行make install,如果出现如下错误

: *** [charon] 错误 1
make[3]: 离开目录“/home/strongswan-4.5.3/src/charon”
make[2]: *** [all-recursive] 错误 1
make[2]: 离开目录“/home/strongswan-4.5.3/src”
make[1]: *** [all-recursive] 错误 1
make[1]: 离开目录“/home/strongswan-4.5.3”

则检查依赖库是否安装完成是否有遗漏,yum update更新一下软件以及库,然后执行

make clean清除之前的生成文件,重新加上权限 sudo make install进行编译

编译后的文件如下所示

.
├── etc
│   ├── ipsec.conf
│   ├── ipsec.d
│   │   ├── aacerts
│   │   ├── acerts
│   │   ├── cacerts
│   │   ├── certs
│   │   ├── crls
│   │   ├── ocspcerts
│   │   ├── private
│   │   └── reqs
│   └── strongswan.conf
├── lib
│   └── ipsec
│       ├── libcharon.a
│       ├── libcharon.la
│       ├── libhydra.a
│       ├── libhydra.la
│       ├── libstrongswan.a
│       ├── libstrongswan.la
│       └── plugins
│           ├── libstrongswan-aes.a
│           ├── libstrongswan-aes.la
│           ├── libstrongswan-attr.a
│           ├── libstrongswan-attr.la
│           ├── libstrongswan-constraints.a
│           ├── libstrongswan-constraints.la
│           ├── libstrongswan-des.a
│           ├── libstrongswan-des.la
│           ├── libstrongswan-dnskey.a
│           ├── libstrongswan-dnskey.la
│           ├── libstrongswan-fips-prf.a
│           ├── libstrongswan-fips-prf.la
│           ├── libstrongswan-gmp.a
│           ├── libstrongswan-gmp.la
│           ├── libstrongswan-hmac.a
│           ├── libstrongswan-hmac.la
│           ├── libstrongswan-kernel-netlink.a
│           ├── libstrongswan-kernel-netlink.la
│           ├── libstrongswan-md5.a
│           ├── libstrongswan-md5.la
│           ├── libstrongswan-pem.a
│           ├── libstrongswan-pem.la
│           ├── libstrongswan-pgp.a
│           ├── libstrongswan-pgp.la
│           ├── libstrongswan-pkcs1.a
│           ├── libstrongswan-pkcs1.la
│           ├── libstrongswan-pubkey.a
│           ├── libstrongswan-pubkey.la
│           ├── libstrongswan-random.a
│           ├── libstrongswan-random.la
│           ├── libstrongswan-resolve.a
│           ├── libstrongswan-resolve.la
│           ├── libstrongswan-revocation.a
│           ├── libstrongswan-revocation.la
│           ├── libstrongswan-sha1.a
│           ├── libstrongswan-sha1.la
│           ├── libstrongswan-sha2.a
│           ├── libstrongswan-sha2.la
│           ├── libstrongswan-socket-raw.a
│           ├── libstrongswan-socket-raw.la
│           ├── libstrongswan-stroke.a
│           ├── libstrongswan-stroke.la
│           ├── libstrongswan-updown.a
│           ├── libstrongswan-updown.la
│           ├── libstrongswan-x509.a
│           ├── libstrongswan-x509.la
│           ├── libstrongswan-xauth.a
│           ├── libstrongswan-xauth.la
│           ├── libstrongswan-xcbc.a
│           └── libstrongswan-xcbc.la
├── libexec
│   └── ipsec
│       ├── _copyright
│       ├── pluto
│       ├── _pluto_adns
│       ├── starter
│       └── whack
├── sbin
│   └── ipsec
└── share
    └── man
        ├── man3
        │   ├── anyaddr.3
        │   ├── atoaddr.3
        │   ├── atoasr.3
        │   ├── atoul.3
        │   ├── goodmask.3
        │   ├── initaddr.3
        │   ├── initsubnet.3
        │   ├── portof.3
        │   ├── rangetosubnet.3
        │   ├── sameaddr.3
        │   ├── subnetof.3
        │   ├── ttoaddr.3
        │   ├── ttodata.3
        │   ├── ttosa.3
        │   └── ttoul.3
        └── man8
            ├── ipsec.8
            └── pluto.8

  • 10
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Leviiil

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值