Ubuntu24.04编译最新curl编译支持HTTP3和ECH
今天需要编译curl测试一下http3是否已开启,记录一下。
git clone --recursive -b 0.22.0 https://github.com/cloudflare/quiche
cd quiche/
cargo build --package quiche --release --features ffi,pkg-config-meta,qlog
ln -s libquiche.so target/release/libquiche.so.0
mkdir quiche/deps/boringssl/src/lib
ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) quiche/deps/boringssl/src/lib/
cd ..
git clone https://github.com/curl/curl
cd curl
apt install autoconf libtool libpsl-dev
./configure --prefix=/usr/local/curl LDFLAGS="-Wl,-rpath,$PWD/../quiche/target/release" --with-openssl=$PWD/../quiche/quiche/deps/boringssl/src --with-quiche=$PWD/../quiche/target/release --enable-ech
make
make install
src/curl --http3-only https://http3check.net/
问题1:libtool未安装
configure:8670: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL. If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.
问题2:libpsl-dev未安装
configure:8671: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: error: /usr/bin/autoconf failed with exit status: 1 configure: error: libpsl libs and/or directories were not found where specified!
阅读剩余
版权声明:
作者:konoha
链接:https://konoha.cc/ubuntu24-04%e7%bc%96%e8%af%91%e6%9c%80%e6%96%b0curl%e7%bc%96%e8%af%91%e6%94%af%e6%8c%81http3%e5%92%8cech.html
文章版权归作者所有,未经允许请勿转载。
THE END