手动安装curl找不到openssl

时间:2018-08-23 13:05:13

标签: ssl curl centos

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

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

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?

1 个答案:

答案 0 :(得分:2)

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