Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Curl with HTTP2 support. (Script run on Ubuntu 16.04, 18.04 or 20.04)
#! /bin/bash
# Shell script for install Curl with HTTP2 support. Script run on Ubuntu 16.04, 18.04 or 20.04
# Notes:
# - Ubuntu environment is assumed
# - I did run shell script on Ubuntu 18.04
# Gratitude:
# -
# Update version to latest, found here:
cd ~
sudo apt-get update -y
sudo apt-get install -y build-essential nghttp2 libnghttp2-dev libssl-dev wget
tar -xzvf curl-${VERSION}.tar.gz && rm -f curl-${VERSION}.tar.gz && cd curl-${VERSION}
./configure --prefix=/usr/local --with-ssl --with-nghttp2
make -j4
sudo make install
sudo ldconfig
cd ~ && rm -rf curl-${VERSION}
Copy link

jjpeleato commented May 3, 2021

Nice one, thanks!

BTW, is package nghttp2 necessary? I think installing its related library is enough.

Yes, it is necessary.

Look at the pre requisites according official documentation =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment