Skip to content

Instantly share code, notes, and snippets.

@Amit-Thawait
Forked from fideloper/update_curl.sh
Last active June 9, 2017 10:15
Show Gist options
  • Save Amit-Thawait/4e0a3b9b0f8adf85a167d99908d4f33e to your computer and use it in GitHub Desktop.
Save Amit-Thawait/4e0a3b9b0f8adf85a167d99908d4f33e 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
mkdir ~/curl
cd ~/curl
wget http://curl.haxx.se/download/curl-7.47.0.tar.bz2
tar -xvjf curl-7.47.0.tar.bz2
cd curl-7.47.0
# 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
curl -V
# curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
# Both curl and libcurl should have same version
# If not fire the below command
sudo cp lib/.libs/libcurl.so* /usr/local/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment