nghttp2 is an implementation of HTTP/2 and its header compression algorithm, HPACK. Packages use this to support HTTP/2, which in some cases is required outright.
Install nghttp2 by running the following commands:
./configure --prefix=/usr \
--disable-static \
--enable-lib-only \
--docdir=/usr/share/doc/nghttp2-1.69.0 &&
make
Now, as the root user:
make install
Install lib32-nghttp2 by running the following commands:
CC="gcc -m32" CXX="g++ -m32" \
PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
./configure --prefix=/usr \
--libdir=/usr/lib32 \
--host=i686-pc-linux-gnu \
--disable-static \
--enable-lib-only &&
make
Now, as the root user:
make DESTDIR=$PWD/DESTDIR install && cp -vr DESTDIR/usr/lib32/* /usr/lib32 && rm -rf DESTDIR && ldconfig
Run ./configure --help for a full list of options.
--disable-static: This
switch prevents installation of static versions of the libraries.
--enable-lib-only: Tells
the build system to only build libnghttp2 as the full package is unneeded and
pulls in more dependencies.