zoukankan      html  css  js  c++  java
  • strongswan--配置Charon-systemd问题解决

             今天尝试使用swanctl和systemd配置strongswan。配置方法见网址:

             https://wiki.strongswan.org/projects/strongswan/wiki/Charon-systemd

             ./configure --enable-systemd --enable-swanctl --disable-charon --disable-stroke --disable-scepclient

             结果执行configure时提示错误。

     

             必应一下(无法翻墙,又不愿用百度),发现原来是systemd自版本209开始,动态库libsystemd.so 就提供了所有的东西,包括libsystemd-daemon.so 。

             参见如下网址的解释:

             https://github.com/mirage/xen/commit/7dec5b0c658bea9c16a0e3c051e64d2abf57be48

     

             https://bbs.archlinux.org/viewtopic.php?id=209316

             之后,执行./configure仍然提示同样的错误,根据提示,在目录/lib/systemd/system/中没有找到libsystemd,但是在/lib/systemd/中找到了systemd。

             于是将configure的systemd目录选项设置为--with-systemdsystemunitdir=/lib/system/

     

             再次执行./configure,仍然错误。此时感觉要崩溃了!!!

     

             不能放弃,继续解决!!!!!!

             根据提示“No package 'libsystemd' found”查到一个解决方案,地址如下:

             https://github.com/albfan/miraclecast/issues/131

             于是安装了libsystemd-dev。

             再次执行

             ./configure --enable-systemd --enable-swanctl --disable-charon --disable-stroke --disable-scepclient --with-systemdsystemunitdir=/lib/systemd/

     

             终于成功。

  • 相关阅读:
    docker容器导出导入
    docker容器stop不了问题的处理
    weblogic server 后台命令启动
    查看Linux系统版本的命令
    Oracle12c修改字符集
    Oracle导出导入时客户端字符集设置
    centos7 防火墙开放端口
    docker仓库安装
    spring boot打war包的修改内容
    连接谷歌gee
  • 原文地址:https://www.cnblogs.com/collapsar/p/9295910.html
Copyright © 2011-2022 走看看