cd /opt

sudo aptget install g++ make binutils autoconf automake autotoolsdev libtool pkgconfig zlib1gdev libcunit1dev libssldev libxml2dev libevdev libeventdev libjanssondev libjemallocdev cython python3dev pythonsetuptools

git clone https://github.com/icing/mod_h2.git

cd mod_h2

autoreconf -i

automake

autoconf

./configure –with-apxs=/usr/bin/apxs

configure: error: “library nghttp2 not found”

cd ..

git clone https://github.com/tatsuhiro-t/nghttp2.git

cd nghttp2

autoreconf -i
automake
autoconf
./configure
make
make install

ln -s /opt/nghttp2 /var/lib/nghttp2

cd /opt/mod_http2

…….


……….

checking for nghttp2/nghttp2.h… yes
checking for nghttp2_stream_get_weight… yes
checking for nghttp2_session_change_stream_priority… yes
checking assert.h usability… yes
checking assert.h presence… yes
checking for assert.h… yes
checking stddef.h usability… yes
checking stddef.h presence… yes
checking for stddef.h… yes
checking for int32_t… yes
checking for size_t… yes
checking for ssize_t… yes
checking for uint32_t… yes
checking for uint8_t… yes
checking for memmove… yes
checking for memset… yes
checking for strcasecmp… yes
checking for strchr… yes
checking for a2enmod… no
checking that generated files are newer than configure… done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mod_http2/Makefile
config.status: creating mod_http2/h2_version.h
config.status: creating mod_http2/config.h
config.status: executing libtool commands
config.status: executing depfiles commands
configure: summary of build options:

Version: 1.1.0 shared 11:0:6
Host type: x86_64-unknown-linux-gnu
Install prefix:
APXS: /usr/bin/apxs
HTTPD-VERSION: 2.4.18
C compiler: gcc -std=gnu99
CFLAGS: -g -O2
WARNCFLAGS:
LDFLAGS: -L/usr/lib
LIBS: -lnghttp2
CPPFLAGS: -I/usr/include/apache2 -I/usr/include/apr-1.0 -DH2_NG2_STREAM_API -DH2_NG2_CHANGE_PRIO
a2enmod –


Restart apache