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!

 

阅读剩余
THE END