【问题标题】:Failed openssl check in ./configure./configure 中的 openssl 检查失败
【发布时间】:2020-03-09 12:49:27
【问题描述】:

我正在尝试在我的 kali 2020.1 上手动安装 openvpn 2.4.8,它显示

configure: error: openssl check failed

我查看了许多线程,例如thisthis,但无法修复它。 这是什么原因以及如何解决这个问题?

【问题讨论】:

    标签: openssl openvpn kali-linux


    【解决方案1】:

    短版:缺少 libssl-dev 库,可以通过运行修复

    apt-get install libssl-dev
    

    【讨论】:

      【解决方案2】:
      Install OpenVPN 2.4.7
      Visit https://openvpn.net/community-downloads/
      Download via
      #wget https://swupdate.openvpn.org/community/releases/openvpn-2.4.7.tar.gz
      #tar xfz openvpn-2.4.7.tar.gz
      #cd openvpn-2.4.7
      #./configure
      Output:
      checking for a BSD-compatible install… /usr/bin/install -c
      checking whether build environment is sane… ye
      schecking for a thread-safe mkdir -p… /bin/mkdir
      .
      .
      [truncated output]
      .
      checking for SSL_CTX_new… no
      configure: error: openssl check failed
      Install OpenSSL
      Visit https://www.openssl.org/source
      Download via
      #wget https://www.openssl.org/source/openssl-1.0.2s.tar.gz
      #tar xvf openssl-1.0.2.tar.gz
      #./config -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)'
      #make
      #make install
      Output:
      #bash: /usr/bin/openssl: No such file or directory
      Run Commands:
      
      #ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
      
      #ln -s /usr/local/ssl/bin/openssl /usr/local/bin/openssl
      
      Note:
      -openssl may or may not be needed. Since I uninstalled openssl to install latest version. Steps are mentioned below.
      -/usr/local/bin is for locally compiled package and /usr/bin is for trivial binaries not needed in single user mode
      Try Installing OpenVPN
      #./configure 
      #make
      #make install
      #openvpn — version
      Output:
      #OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jul 26 2019library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08Originally developed by James YonanCopyright © 2002–2018 OpenVPN Inc <sales@openvpn.net>
      For the error “configure: error: ssl is required but missing”
      #apt-get install libssl-dev
      For the error “configure: error: lzo enabled but missing”
      #apt-get install liblzo2-de
      For the error “configure: error: libpam required but missing “
      #apt-get install libpam0g-dev
      Note:
      -Sudo is not used as the vm was running as root. Also we can specify manually where to install ssl libraries,etc. It is just a general workaround.
      

      【讨论】:

      • 欢迎来到stackoverflow。请编辑您的帖子以包含对代码的解释以及它如何帮助解决问题中的问题。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-07-03
      • 2013-04-15
      • 2021-04-06
      • 1970-01-01
      • 1970-01-01
      • 2013-02-24
      • 2011-10-17
      相关资源
      最近更新 更多