Last active
April 18, 2020 02:10
-
-
Save lita/1047acf4e620b653fe1473f5a03a8510 to your computer and use it in GitHub Desktop.
How to update curl to a later version
This file contains hidden or 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
#! /usr/bin/env bash | |
# Install any build dependencies needed for curl | |
sudo apt-get build-dep curl | |
# Get latest (as of Feb 25, 2016) libcurl | |
mkdir ~/curl | |
cd ~/curl | |
wget http://curl.haxx.se/download/curl-7.69.1.tar.bz2 | |
tar -xvjf curl-7.69.1.tar.bz2 | |
cd curl-7.69.1 | |
# The usual steps for building an app from source | |
# ./configure | |
# ./make | |
# sudo make install | |
./configure | |
make | |
sudo make install | |
# Resolve any issues of C-level lib | |
# location caches ("shared library cache") | |
sudo ldconfig | |
# The binary will live in usr/local | |
/usr/local/bin/curl -i --haproxy-protocol -k |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment