Skip to content

Instantly share code, notes, and snippets.

@thinkingcap
Created February 6, 2017 23:54
Show Gist options
  • Save thinkingcap/7305b533cbcbe050bfd925d8cc3c5ee2 to your computer and use it in GitHub Desktop.
Save thinkingcap/7305b533cbcbe050bfd925d8cc3c5ee2 to your computer and use it in GitHub Desktop.
Upgrade curl on Ubuntu 14.04
#! /usr/bin/env bash
# Install any build dependencies needed for curl
sudo apt-get build-dep curl
# Get latest (as of Dec 23, 2016) libcurl
mkdir ~/curl
cd ~/curl
wget http://curl.haxx.se/download/curl-7.52.1.tar.bz2
tar -xvjf curl-7.52.1.tar.bz2
cd curl-7.52.1
# The usual steps for building an app from source
# ./configure
# ./make
# sudo make install
./configure --prefix=/usr
make
sudo make install
# Resolve any issues of C-level lib
# location caches ("shared library cache")
sudo ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment