私はUbuntu 14.04で動作していますが、手動でcurl 7.48をインストールしました(質問Libcurl not updatedを参照)。libcurlはHTTPSをサポートしていません
私は、コマンドを実行しようとしました:
[email protected]:/usr/bin$ curl -sS https://storage.googleapis.com/kubernetes-release/release/stable.txt curl: (1) Protocol "https" not supported or disabled in libcurl [email protected]:/usr/bin$
だから私は、コンフィギュレーション出力のクイックチェックをやったし、それが明確にSSLがサポートされていないと述べた。
configure: Configured to build curl/libcurl: curl version: 7.48.0 Host setup: x86_64-unknown-linux-gnu Install prefix: /usr/local Compiler: gcc SSL support: no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl})
だから私が持っていました
[email protected]:~/curl-7.48.0# ./configure --with-ssl:このリンク https://curl.haxx.se/docs/install.html そして、私は別のコマンドを試してみたを見てENV変数の設定
[email protected]:~/curl-7.48.0# ./configure --with-ssl=/lib/x86_64-linux-gnu/
:位置しています私のOpenSSLライブラリを指定しようとしている
[email protected]:~/curl-7.48.0# export LDFLAGS="-L/lib/x86_64-linux-gnu/" [email protected]:~/curl-7.48.0# ./configure --with-ssl
しかし、何も動いていないようにみえは、結果は常に同じです:
[...] configure: Configured to build curl/libcurl: curl version: 7.48.0 Host setup: x86_64-unknown-linux-gnu Install prefix: /usr/local Compiler: gcc SSL support: no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl}) SSH support: no (--with-libssh2) zlib support: enabled GSS-API support: no (--with-gssapi) TLS-SRP support: no (--enable-tls-srp) resolver: default (--enable-ares/--enable-threaded-resolver) IPv6 support: enabled Unix sockets support: enabled IDN support: no (--with-{libidn,winidn}) Build libcurl: Shared=yes, Static=yes Built-in manual: enabled --libcurl option: enabled (--disable-libcurl-option) Verbose errors: enabled (--disable-verbose) SSPI support: no (--enable-sspi) ca cert bundle: /etc/ssl/certs/ca-certificates.crt ca cert path: no ca fallback: no LDAP support: no (--enable-ldap/--with-ldap-lib/--with-lber-lib) LDAPS support: no (--enable-ldaps) RTSP support: enabled RTMP support: no (--with-librtmp) metalink support: no (--with-libmetalink) PSL support: no (libpsl not found) HTTP2 support: disabled (--with-nghttp2) Protocols: DICT FILE FTP GOPHER HTTP IMAP POP3 RTSP SMTP TELNET TFTP [email protected]:~/curl-7.48.0#
多分[this](https://stackoverflow.com/questions/10079707/https-connection-using-curl-from-commandline)は役に立ちます –