Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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
tar -xvjf curl-7.50.2.tar.bz2
cd curl-7.50.2
# The usual steps for building an app from source
# ./configure
# ./make
# sudo make install
sudo make install
# Resolve any issues of C-level lib
# location caches ("shared library cache")
sudo ldconfig

<3 I owe you a lot of coffee or beer or something

aalhour commented Jun 7, 2016

Thanks a lot for sharing this!

Thank you very much, a beer from me too :)

ghost commented Sep 11, 2016

added to my LAMP install Script

bakytn commented Sep 14, 2016


rustam commented Sep 26, 2016

Thanks, it saved my time.



kivison commented Nov 2, 2016

This was one of those "I dont really know what I am doing" moments but trusted that you did.
Trust Confirmed! Thank you, worked a treat :)


I don't know what I'm doing either! 🎉 👍

derylspielman commented Nov 13, 2016 edited

I tried upating to curl 7.51.0 but when I run curl --version I still see the old version 7.35.0.

curl: /usr/local/lib/ no version information available (required by curl)
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.51.0 OpenSSL/1.0.1f zlib/1.2.8 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp 
Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP

Running which curl shows /usr/bin/curl but the script seems to install 7.51.0 in /usr/local/bin/curl. To specify /usr/bin/curl as the path it's installed to change the ./configure to ./configure --prefix=/usr

good one, thanks!

agarzon commented Dec 29, 2016

@derylspielman is right.

./configure --prefix=/usr should be used in order to replace the default curl binay located in /usr/bin/curl, tested on Ubuntu 14.04 with curl 7.52.1

thanks a lot <3

Yazany6b commented Jan 9, 2017

Thanks a lot the curl was correctly but i want also to update the openssl version to 1.0.2e can i do that. i have tried many ways but no success.

I like!

Thanks a lot <3 .

Worked like a charm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment