Last active
July 13, 2021 03:12
-
-
Save jmn/4de857259b1dfc54ab80b5682af935ad to your computer and use it in GitHub Desktop.
Building h2load (of nghttp2) on Ubuntu 16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# https://nghttp2.org/documentation/h2load-howto.html | |
sudo apt-get update | |
sudo apt-get install g++ make binutils autoconf automake autotools-dev libtool pkg-config \ | |
zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libev-dev libevent-dev libjansson-dev \ | |
libc-ares-dev libjemalloc-dev cython python3-dev python-setuptools libjemalloc-dev \ | |
libspdylay-dev | |
git clone https://github.com/nghttp2/nghttp2.git && cd nghttp2 | |
autoreconf -i && automake && autoconf | |
./configure --enable-app | |
make | |
./src/h2load --help |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, now nghttp2 require Python 3.8 and GCC 6 (and cython3) - which Ubuntu 16.04 does not have.
Also current h2load source code won't compile on Ubuntu Xenial 16.04 with error messages such as :
nghttp2.c:31779:11: error: PyThreadState {aka struct _ts} has no member named exc_value
So I've installed h2load with these steps instead: