2015-07-29 13 views
11

Ho l'ultima versione di curl e ancora non vedo http2 come funzionalità. Ho seguito i passaggi per domande correlate, ma ancora sfortunato.curl non supporta http2 su mac

$ /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 

qualche idea?

risposta

24

brew info curl elenca i flag richiesti per abilitare tale funzionalità.

brew reinstall curl --with-openssl --with-nghttp2 aggiornerà l'installazione.

+0

Impressionante Grazie Completamente risolto il problema per me –

+1

@MarkFine:!!! Se risolve il problema, potresti convalidare quella risposta con il controllo verde? – enguerran

+0

Grande, grazie, questo ha risolto il problema! – sabiland

9

Per impostazione predefinita, curl non viene compilato con nghttp2. Come explained in this article, è necessario ricompilare passando la bandiera --with-nghttp2 e collegarlo (per sostituire l'originale curl fornito con Mac 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 
+0

Eventuali problemi che sovrascrivono il sistema di arricciatura? – Chris

+0

WOW, risolto qui! –