Created
December 15, 2021 15:38
-
-
Save thesuhu/50db7a8bbbba4edfc7289c986b0907d6 to your computer and use it in GitHub Desktop.
Build and install cURL on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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