2015-07-29 17 views
11

Ich habe die neueste Version von Curl und immer noch nicht sehen, http2 als Feature angezeigt werden. Ich habe Schritte zu verwandten Fragen verfolgt, aber immer noch kein Glück.Curl unterstützt nicht http2 auf dem 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 

irgendwelche ideen?

Antwort

24

brew info curl listet die erforderlichen Flags auf, um diese Funktion zu aktivieren.

brew reinstall curl --with-openssl --with-nghttp2 wird Ihre Installation aktualisieren.

+0

Ehrfürchtig Dank Total löste das Problem für mich –

+1

@MarkFine ausgeliefert ersetzen:! Wenn es löst das Problem, könnten Sie diese Antwort mit der grünen Prüfung bestätigen? – enguerran

+0

Großartig, thx, löste das Problem! – sabiland

9

Standardmäßig ist curl nicht mit nghttp2 kompiliert. Als explained in this article, müssen Sie es das Bestehen der --with-nghttp2 Flagge neu kompilieren und verknüpfen (das Original curl mit 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

Probleme, die das System locken? – Chris

+0

WOW, hier gelöst! –