18

curl の最新バージョンを使用していますが、まだ http2 が機能として表示されません。関連する質問の手順を実行しましたが、まだうまくいきません。

$ /usr/local/Cellar/curl/7.43.0/bin/curl -V
curl 7.43.0 (x86_64-apple-darwin14.3.0) libcurl/7.43.0 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: IPv6 Largefile NTLM NTLM_WB SSL libz UnixSockets

何か案は?

4

3 に答える 3

10

デフォルトでcurlは、 は でコンパイルされませんnghttp2。この記事 で説明されているように--with-nghttp2、フラグを渡して再コンパイルし、リンクする必要があります( curlMac OS X.

# install cURL with nghttp2 support
$  brew install curl --with-nghttp2

# link the formula to replace the system cURL
$  brew link curl --force

# now reload the shell
于 2016-01-25T22:44:31.487 に答える