-
-
Save hedleysmith/d4fb9d8d2907a373b28079a0d11657fc to your computer and use it in GitHub Desktop.
#! /bin/bash | |
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 -y | |
git clone https://github.com/nghttp2/nghttp2.git && cd nghttp2 | |
autoreconf -i | |
automake | |
autoconf | |
./configure --enable-apps | |
make | |
./src/h2load --help |
Based on this: https://github.com/nghttp2/nghttp2#requirements
Try this:
apt-get update;
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 -qy;
git clone https://github.com/nghttp2/nghttp2.git;
cd nghttp2;
git submodule update --init;
autoreconf -i;
automake;
autoconf;
./configure;
make;
./src/h2load --help;
— — — — — — — — — — — — — — — —
URL=http://example.com/
NUM_REQUEST=1000
CONCURRENCY=32
THREADS=4
./src/h2load -n$NUM_REQUEST -c1 --h1 $URL
./src/h2load -n$NUM_REQUEST -c$CONCURRENCY -t$THREADS --h1 $URL
@pascalandy your solution worked, thanks!
@pascalandy 's solution works. Thank you!
Nice , Thank you!
run apt-get install libc-ares*
for compile applications(nghttpd)
Compiling in ubuntu14.04 is very troublesome, everything goes smoothly in ubuntu20.04
same here, I can't found h2load in ./src after run make