Skip to content

Instantly share code, notes, and snippets.

@thesuhu
Created December 15, 2021 15:38
Show Gist options
  • Save thesuhu/50db7a8bbbba4edfc7289c986b0907d6 to your computer and use it in GitHub Desktop.
Save thesuhu/50db7a8bbbba4edfc7289c986b0907d6 to your computer and use it in GitHub Desktop.
Build and install cURL on Ubuntu
#! /bin/bash
# Already tested on Ubuntu 20.04
# Check the latest version at https://curl.se/download/
VERSION=7.80.0
cd ~
sudo apt-get update -y
sudo apt-get install -y nghttp2 libnghttp2-dev libssl-dev build-essential wget
wget https://curl.haxx.se/download/curl-${VERSION}.tar.gz
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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment