You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the example command it says libcurl version doesn't support this.
$ curl -I https://blog.cloudflare.com/ --http3
curl: option --http3: the installed libcurl version doesn't support this
curl: try 'curl --help' or 'curl --manual' for more information
I can find very little information on this online...So I'm hoping someone would be able to help.
I have also just run the following and noticed curl is showing OS version and not Homebrew version even though "which curl" and "curl -V" is showing and using Brew version. (Homebrew/brew#3433)
$ brew config
HOMEBREW_VERSION: 2.2.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 13f508d0dc8ada1726ee09a750285d7447ac3df4
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 915cd48b0fdb4d333785be0dbef72243ce6a2b05
Core tap last commit: 6 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/bin/ruby
Clang: 10.0 build 1001
Git: 2.20.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_232
macOS: 10.14.6-x86_64
CLT: 10.3.0.0.1.1562985497
Xcode: 11.3
XQuartz: 2.7.11 => /opt/X11
So extra step I have attempted this and refused:
$ brew link curl --force
Warning: Refusing to link macOS-provided software: curl
If you need to have curl first in your PATH run:
echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.bash_profile
For compilers to find curl you may need to set:
export LDFLAGS="-L/usr/local/opt/curl/lib"
export CPPFLAGS="-I/usr/local/opt/curl/include"
For pkg-config to find curl you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig"
@tonyclemmey Thanks. I am able to reproduce on my macbook (10.14) as well. I think this is because something is wrong with BoringSSL build (required by quiche and curl tls support both) and eventually curl is built without quiche, so http3 support is missing.
You can try #320 to see if it fixes the issue, using the following patch to curl.rb:
diff --git a/curl.rb b/curl.rb
index 04561a9..8abba98 100644
--- a/curl.rb
+++ b/curl.rb
@@ -39,7 +39,7 @@ class Curl < Formula
system "./buildconf" if build.head?
# build boringssl
- system "git", "clone", "--recursive", "https://github.com/cloudflare/quiche"
+ system "git", "clone", "-b", "boringssl_update", "--recursive", "https://github.com/cloudflare/quiche"
mkdir_p "quiche/deps/boringssl/build"
cd "quiche/deps/boringssl/build" do
system "cmake", "-DCMAKE_POSITION_INDEPENDENT_CODE=on", ".."
@junhochoi Would you happen to know how I can keep the http3 equipped version of curl in Homebrew and stop the Homebrew update/upgrade replacing curl. I believe I need to either "brew tap" the http3 equipped version of curl formulae? and/or "brew pin" the package and it's dependencies somehow? Does this sound correct and possible?
Already up-to-date.
==> Upgrading 1 outdated package:
curl HEAD-be578ee -> HEAD-be578ee
==> Upgrading curl
==> Cloning https://github.com/curl/curl.git
Updating /Users/tony/Library/Caches/Homebrew/curl--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at be578ee CMake: use check_symbol_exists also for inet_pton
==> ./buildconf
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/curl/HEAD-be578ee --with-secure-transport --without-ca-bundle --without-ca-path
==> make install
==> make install -C scripts
Error: File exists @ dir_s_mkdir - /usr/local/opt/curl/.brew
Removing: /Users/tony/Library/Caches/Homebrew/cargo_cache... (787 files, 72.3MB)
Removing: /Users/tony/Library/Caches/Homebrew/go_cache... (15 files, 90.5KB)
Since this homebrew formula is not in the official repo, you need to manage it yourself. I think it's a good idea to do brew pin curl to prevent from auto upgrading.
$ ./src/.libs/curl -I https://cloudflare-quic.com --http3
curl: option --http3: the installed libcurl version doesn't support this
curl: try 'curl --help' or 'curl --manual' for more information```
$ ./src/.libs/curl --help all | grep http3
--http3 Use HTTP v3
Thanks @binarytrails. In my case, my version of libcurl as reported by curl --version was not the right one (much older than the curl version), and while some people reported having to modify the ld load order in /etc/ld.so.conf, in my case I simply needed to sudo ldconfig -v and then curl --version reported the correct (matching) libcurl version and the --http3 option also then worked. curl's official guide definitely needs to add that step.
Reacted by iftahl, Ritesh, Foivos Michelinakis, Bersertus, Mtx Z, Shi Saaristo, networkException and David Mohren
Reacted by binarytrails, Ernst, Ritesh and David Mohren
Do note that on the latest version (7.88 as of right now) they have --http3-only as a parameter in case --http3 needs a fallback way. More info at curl/curl#10264
Activity
tonyclemmey commentedon Jan 10, 2020
I have also just run the following and noticed curl is showing OS version and not Homebrew version even though "which curl" and "curl -V" is showing and using Brew version. (Homebrew/brew#3433)
So extra step I have attempted this and refused:
tonyclemmey commentedon Jan 10, 2020
In my .bash_profile
junhochoi commentedon Jan 13, 2020
@tonyclemmey Thanks. I am able to reproduce on my macbook (10.14) as well. I think this is because something is wrong with BoringSSL build (required by quiche and curl tls support both) and eventually curl is built without quiche, so http3 support is missing.
I'll take a look.
Update boringssl
junhochoi commentedon Jan 14, 2020
You can try #320 to see if it fixes the issue, using the following patch to
curl.rb:deps: update boringssl
deps: update boringssl
tonyclemmey commentedon Jan 14, 2020
@junhochoi Many thanks, working for me now.
tonyclemmey commentedon Jan 15, 2020
@junhochoi Would you happen to know how I can keep the http3 equipped version of curl in Homebrew and stop the Homebrew update/upgrade replacing curl. I believe I need to either "brew tap" the http3 equipped version of curl formulae? and/or "brew pin" the package and it's dependencies somehow? Does this sound correct and possible?
Currently, brew update/upgrade is causing my curl to be upgraded from "https://github.com/curl/curl.git" which I then have to uninstall and replace with CloudFlare Quic version.
tonyclemmey commentedon Jan 15, 2020
@junhochoi I currently run into this
junhochoi commentedon Jan 15, 2020
@tonyclemmey
brew pin curlto prevent from auto upgrading.binarytrails commentedon Nov 6, 2020
but still:
I followed https://github.com/curl/curl/blob/master/docs/HTTP3.md
jdunk commentedon Feb 19, 2021
@binarytrails I have exactly the same issue. I followed the openssl installation route. Were you ever able to resolve this?
binarytrails commentedon Feb 19, 2021
@jdunk No, I ended up using https://github.com/aiortc/aioquic/blob/main/examples/http3_client.py for the sake of time. Let me know if you find a solution! From what I understood/remember about curl in http3 all curl libraries needs to be aligned and I didn't want to break my curl by replacing them all or otherwise, pointing to the right ones which can get tedious.
jdunk commentedon Feb 19, 2021
Thanks @binarytrails. In my case, my version of
libcurlas reported bycurl --versionwas not the right one (much older than the curl version), and while some people reported having to modify the ld load order in/etc/ld.so.conf, in my case I simply needed tosudo ldconfig -vand thencurl --versionreported the correct (matching) libcurl version and the--http3option also then worked. curl's official guide definitely needs to add that step.shinmai commentedon Nov 11, 2022
18 months later and the guide remains the same, but this fixed my issue, thanks!
GF-Huang commentedon Jan 21, 2023
Any one help me?
luisalvarado commentedon Feb 16, 2023
Just updating here:
And libcurl version is:
Do note that on the latest version (7.88 as of right now) they have --http3-only as a parameter in case --http3 needs a fallback way. More info at curl/curl#10264