【发布时间】:2017-04-04 13:32:53
【问题描述】:
我有一台运行 10.04 的非常旧的 Ubuntu 服务器。
它将在夏天停止生产,但我现在有一个问题,需要我更新 PHP curl 以使用 OpenSSL,所以我有 TLS v 1.2。 10.04 自带的不支持这个版本。
我从 OpenSSL 下载了 v 1.0.1u。
我做了一个:
./buildconf
./configure
make
make install
完成了我做的过程
d7:~/openssl-1.0.1u$ openssl version
OpenSSL 1.0.1u 22 Sep 2016
d7:~/openssl-1.0.1u$ ^C
看来OpenSSL的更新已经成功完成了。
所有的 OpenSSL 库、头文件等似乎都是在
中创建的/usr/local/ssl
子目录./lib包含
libcrypto.a 和 libssl.a 我想是静态库。
我认为openSSL的安装是正确的,看起来还不错。
我下载了 Curl v 7.39.0 并希望它使用新安装的 openSSL 安装。但无论我做什么,它似乎都找不到正确的库。
我做了一个:
./buildconf
它成功结束了。
现在问题开始了。
如果我这样做
./配置 制作 进行安装
它支持 curl 但没有任何 SSL 支持。
我做了以下任何一项:
./configure --with-ssl=/usr/local
./configure --with-ssl --with-libssl-prefix=/usr/local
./configure --with-ssl --with-libssl-prefix=/usr/local/ssl
./configure --with-ssl --with-libssl-prefix=/usr/local/ssl
env PKG_CONFIG_PATH=/usr/local/ssl/lib/pkgconfig ./configure --with-ssl
它停止 .configure 步骤:
checking for SSL_connect in -lssl... no
checking for ssl with RSAglue/rsaref libs in use... checking for SSL_connect in -lssl... (cached) no
no
configure: error: OpenSSL libs and/or directories were not found where specified!
我已经阅读了几个关于如何以这种方式编译 CURLK 的 SO 答案,但它似乎对我不起作用。
任何人都可以阐明我缺少什么吗?
【问题讨论】: