编译curl,让其使用openssl而不是gnutls
前言
系统:Ubuntu 16.04 LTS (amd64)
通过sudo apt-get install curl
安装的curl是使用的gnutls。curl版本7.47.0.
用openssl来编译curl
$ tar xzf curl-7.22.0.tar.gz
$ mv curl-7.22.0 curl-7.22.0-openssl
$ cd curl-7.22.0-openssl
$ ./configure --with-ssl=/usr/include --without-nss
$ make
To verify that the right curl
, and more importantly, libcurl.so
were created I ran
$ LD_LIBRARY_PATH=lib/.libs src/.libs/curl -V
curl 7.22.0 (x86_64-unknown-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.0 zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz
以上命令还没有去验证,这里先记录一下。
参考链接
Funny Curly things
How can I ensure that curl uses openssl, and not nss?