所以我建立openssl
./config
make
sudo make install
sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`
我卷发
./configure --with-ssl
make
make install
OpenSSL看起来已正确安装:
openssl version
OpenSSL 1.0.1g 7 Apr 2014
但是curl使用旧的openssl版本(1.0.1f而不是1.0.1g):
curl --version
curl 7.37.0 (x86_64-unknown-linux-gnu) libcurl/7.37.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 libssh2/1.4.3 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
如何使curl使用新版本?
我想尝试最新版本,因为我正在解决一些奇怪的openssl / curl错误#1 #2
编辑:我也尝试过./configure --with-ssl=/usr/local/ssl/include/openssl
,没有成功
Edit2:到目前为止,我还尝试过:
sudo ./configure --with-ssl --with-libssl-prefix=/usr/local/ssl
./configure --with-ssl=/usr/local/ssl
PKG_CONFIG_PATH=/usr/local/ssl/lib/pkgconfig ./configure
PKG_CONFIG_PATH=/usr/local/ssl/lib/pkgconfig ./configure --with-ssl
PKG_CONFIG_PATH=/usr/local/ssl/lib/pkgconfig ./configure --with-ssl=/usr/local/ssl/include/openssl
没有成功...
configure: error: OpenSSL libs and/or directories were not found where specified!
请看我的编辑-没有错误,--with-ssl=/usr/local/ssl/include/openssl
但使用的是旧的openssl。第二个选项配置卷曲而不HTTPS