Skip to content

Instantly share code, notes, and snippets.

@mlask
Forked from fideloper/update_curl.sh
Last active May 25, 2017 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlask/e51ec464c3181906434c07565aa1d73d to your computer and use it in GitHub Desktop.
Save mlask/e51ec464c3181906434c07565aa1d73d to your computer and use it in GitHub Desktop.
Update 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 Feb 25, 2016) libcurl
mkdri
cd ~/curl
wget https://curl.haxx.se/download/curl-7.54.0.tar.bz2
tar -xvjf curl-7.54.0.tar.bz2
cd curl-7.54.0
# 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
# Move binaries
sudo mv /usr/local/bin/curl* /usr/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment