Last active
November 23, 2023 08:06
-
-
Save hedleysmith/d4fb9d8d2907a373b28079a0d11657fc to your computer and use it in GitHub Desktop.
Installing nghttp2 & h2load on Ubuntu 14.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 | |
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 |
@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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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