当前位置:   article > 正文

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

strongswan 搭建centos

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

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

基于centos,使用yum进行安装

  1. yum update
  2. yum install build-essential
  3. yum install autoconf
  4. yum install libgmp-dev
  5. yum install gperf
  6. yum install flex
  7. yum install bison

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

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

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

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

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

编译后的文件如下所示

  1. .
  2. ├── etc
  3. │   ├── ipsec.conf
  4. │   ├── ipsec.d
  5. │   │   ├── aacerts
  6. │   │   ├── acerts
  7. │   │   ├── cacerts
  8. │   │   ├── certs
  9. │   │   ├── crls
  10. │   │   ├── ocspcerts
  11. │   │   ├── private
  12. │   │   └── reqs
  13. │   └── strongswan.conf
  14. ├── lib
  15. │   └── ipsec
  16. │   ├── libcharon.a
  17. │   ├── libcharon.la
  18. │   ├── libhydra.a
  19. │   ├── libhydra.la
  20. │   ├── libstrongswan.a
  21. │   ├── libstrongswan.la
  22. │   └── plugins
  23. │   ├── libstrongswan-aes.a
  24. │   ├── libstrongswan-aes.la
  25. │   ├── libstrongswan-attr.a
  26. │   ├── libstrongswan-attr.la
  27. │   ├── libstrongswan-constraints.a
  28. │   ├── libstrongswan-constraints.la
  29. │   ├── libstrongswan-des.a
  30. │   ├── libstrongswan-des.la
  31. │   ├── libstrongswan-dnskey.a
  32. │   ├── libstrongswan-dnskey.la
  33. │   ├── libstrongswan-fips-prf.a
  34. │   ├── libstrongswan-fips-prf.la
  35. │   ├── libstrongswan-gmp.a
  36. │   ├── libstrongswan-gmp.la
  37. │   ├── libstrongswan-hmac.a
  38. │   ├── libstrongswan-hmac.la
  39. │   ├── libstrongswan-kernel-netlink.a
  40. │   ├── libstrongswan-kernel-netlink.la
  41. │   ├── libstrongswan-md5.a
  42. │   ├── libstrongswan-md5.la
  43. │   ├── libstrongswan-pem.a
  44. │   ├── libstrongswan-pem.la
  45. │   ├── libstrongswan-pgp.a
  46. │   ├── libstrongswan-pgp.la
  47. │   ├── libstrongswan-pkcs1.a
  48. │   ├── libstrongswan-pkcs1.la
  49. │   ├── libstrongswan-pubkey.a
  50. │   ├── libstrongswan-pubkey.la
  51. │   ├── libstrongswan-random.a
  52. │   ├── libstrongswan-random.la
  53. │   ├── libstrongswan-resolve.a
  54. │   ├── libstrongswan-resolve.la
  55. │   ├── libstrongswan-revocation.a
  56. │   ├── libstrongswan-revocation.la
  57. │   ├── libstrongswan-sha1.a
  58. │   ├── libstrongswan-sha1.la
  59. │   ├── libstrongswan-sha2.a
  60. │   ├── libstrongswan-sha2.la
  61. │   ├── libstrongswan-socket-raw.a
  62. │   ├── libstrongswan-socket-raw.la
  63. │   ├── libstrongswan-stroke.a
  64. │   ├── libstrongswan-stroke.la
  65. │   ├── libstrongswan-updown.a
  66. │   ├── libstrongswan-updown.la
  67. │   ├── libstrongswan-x509.a
  68. │   ├── libstrongswan-x509.la
  69. │   ├── libstrongswan-xauth.a
  70. │   ├── libstrongswan-xauth.la
  71. │   ├── libstrongswan-xcbc.a
  72. │   └── libstrongswan-xcbc.la
  73. ├── libexec
  74. │   └── ipsec
  75. │   ├── _copyright
  76. │   ├── pluto
  77. │   ├── _pluto_adns
  78. │   ├── starter
  79. │   └── whack
  80. ├── sbin
  81. │   └── ipsec
  82. └── share
  83. └── man
  84. ├── man3
  85. │   ├── anyaddr.3
  86. │   ├── atoaddr.3
  87. │   ├── atoasr.3
  88. │   ├── atoul.3
  89. │   ├── goodmask.3
  90. │   ├── initaddr.3
  91. │   ├── initsubnet.3
  92. │   ├── portof.3
  93. │   ├── rangetosubnet.3
  94. │   ├── sameaddr.3
  95. │   ├── subnetof.3
  96. │   ├── ttoaddr.3
  97. │   ├── ttodata.3
  98. │   ├── ttosa.3
  99. │   └── ttoul.3
  100. └── man8
  101. ├── ipsec.8
  102. └── pluto.8

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/965211
推荐阅读
相关标签
  

闽ICP备14008679号