Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Curl with HTTP2 support. (Script run on Ubuntu 18.04)
#! /bin/bash
#
# Shell script for install Curl with HTTP2 support. Script run on Ubuntu 18.04
#
# Notes:
# - Ubuntu environment is assumed
# - wget is assumed
#
cd ~
sudo apt-get update -y
sudo apt-get install -y build-essential nghttp2 libnghttp2-dev libssl-dev
wget https://curl.haxx.se/download/curl-7.63.0.tar.gz
tar -xzvf curl-7.63.0.tar.gz && rm -f curl-7.63.0.tar.gz && cd curl-7.63.0
./configure --prefix=/usr/local --with-ssl --with-nghttp2
make
sudo make install
sudo ldconfig
cd ~ && rm -rf curl-7.63.0
@basiljohntme

This comment has been minimized.

Copy link

@basiljohntme basiljohntme commented Nov 18, 2019

Thanks, it works

@dutchwebs

This comment has been minimized.

Copy link

@dutchwebs dutchwebs commented Mar 20, 2020

Works like a charm, thanks for documenting!

@Farzadyz

This comment has been minimized.

Copy link

@Farzadyz Farzadyz commented Sep 17, 2020

Hi
How i can install it on centos 7?

@jjpeleato

This comment has been minimized.

Copy link
Owner Author

@jjpeleato jjpeleato commented Sep 17, 2020

Hi
How i can install it on centos 7?

Sorry, I don't use centos 7, I don't know, you can search the Centos community forum: https://forums.centos.org/

Good luck!

@imperyal

This comment has been minimized.

Copy link

@imperyal imperyal commented Nov 3, 2020

It worked on Ubunto 16.04.6 LTS too, perfect.

@foxhoundsk

This comment has been minimized.

Copy link

@foxhoundsk foxhoundsk commented Nov 12, 2020

Nice one, thanks!

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

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