【问题标题】:Manual install of curl can't find openssl手动安装 curl 找不到 openssl
【发布时间】:2018-08-23 13:05:13
【问题描述】:

我的 curl 系统 (Centos7) 安装不支持 https。因此,我使用./configure --with-ssl 选项从sourceinstalled myself 下载了这个answer

我在配置时收到以下警告:

checking OpenSSL linking with -ldl... no
checking OpenSSL linking with -ldl and -lpthread... no
checking for ssl_version in -laxtls... no
configure: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more.
configure: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this.

因此,我的 curl 版本不支持 https。

Open SSL 已安装在我的系统上:

[user@server curl-7.61.0]$ which openssl
/usr/bin/openssl

如何让我的 curl 安装找到 openssl 并支持 HTTPS?

【问题讨论】:

  • 您是否安装了 openssl-devel ,openssl-devel,openssl-libs 软件包?不确定这是否有帮助。在构建自己的版本时,您可能需要考虑使用与 CentOS 7.x 版本一起提供的相同版本的curl。。
  • @GoinOff 首先,devel 没有安装,但 libs 安装了。我有另一台具有相同版本和 curl 设置的 CentOS7 服务器,但支持 https。那个也有同样的 openssl 和 -libs 但没有安装 devel。
  • @GoinOff 是的,安装 openssl-devel 解决了这个问题。如果您想要支票,请发布答案。

标签: ssl curl centos


【解决方案1】:

尝试安装openssl-devel。从源代码构建时通常需要开发 (-devel) 包。

【讨论】:

    猜你喜欢
    • 2012-09-20
    • 2020-03-29
    • 1970-01-01
    • 1970-01-01
    • 2017-09-29
    • 2022-06-21
    • 2019-12-18
    • 2017-04-09
    • 1970-01-01
    相关资源
    最近更新 更多