Skip to content

Instantly share code, notes, and snippets.

@hedleysmith
Last active November 23, 2023 08:06
Show Gist options
  • Save hedleysmith/d4fb9d8d2907a373b28079a0d11657fc to your computer and use it in GitHub Desktop.
Save hedleysmith/d4fb9d8d2907a373b28079a0d11657fc to your computer and use it in GitHub Desktop.
Installing nghttp2 & h2load on Ubuntu 14.04
#! /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
@BitPopCoin
Copy link

Excellent

@thanhpk
Copy link

thanhpk commented Feb 7, 2017

I am using Ubuntu 16.10 and I can't found h2load in ./src after run make

@pascalandy
Copy link

same here, I can't found h2load in ./src after run make

@pascalandy
Copy link

pascalandy commented Feb 8, 2017

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

@sagarkal
Copy link

sagarkal commented Nov 8, 2017

@pascalandy your solution worked, thanks!

@haxpor
Copy link

haxpor commented Jul 24, 2018

@pascalandy 's solution works. Thank you!

@XiaoOOMing
Copy link

Nice , Thank you!

@socay1
Copy link

socay1 commented Nov 23, 2023

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