首页 > 解决方案 > 手动安装 curl 找不到 openssl

问题描述

我的 curl 系统(Centos7)安装不支持 https。所以我按照这个从源代码下载的答案安装了自己,使用该选项。./configure --with-ssl

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

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?

标签: sslcurlcentos

解决方案


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


推荐阅读