How to compile and install newest version of curl from github in Ubuntu 14.04 LTS 64-bit

Posted: 2015/09/27 in Ubuntu
Tags: , , , , , ,
# Dependency to compile and install first: openssl
# https://mark911.wordpress.com/2015/01/10/how-to-compile-and-install-newest-version-of-openssl-in-ubuntu-14-04-lts-64-bit-via-github/
# Then compile and install curl from github source in Ubuntu 14.04 LTS 64-bit
cd
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes update
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install checkinstall build-essential cmake rtmpdump
# sudo apt-get purge curl
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes build-dep curl
sudo rm -rf curl curl-build
mkdir curl-build
git clone https://github.com/bagder/curl.git
cd curl
sudo ./buildconf
cd lib
LIB=`pwd`
cd ..
sudo ./configure --without-librtmp --enable-shared=no --libdir=`echo $LIB`
sudo make clean
sudo make -I `echo $LIB`
# sudo make check
# result of sudo make check should be as follows:
#============================================================================
#Testsuite summary for curl -
#============================================================================
# TOTAL: 2
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
#============================================================================
sudo checkinstall
# set checkinstall curl package version to 7.45 (most current version at this moment)
# before proceeding with the creation of the checkinstall .deb package
apt-cache show curl
# output of 'apt-cache show curl' command should look like this:
#Package: curl
#Status: install ok installed
#Priority: extra
#Section: checkinstall
#Installed-Size: 6020
#Maintainer: root
#Architecture: i386
#Version: 7.45
#Provides: curl
#Description: Package created with checkinstall 1.6.2
#Description-md5: 556b8d22567101c7733f37ce6557412e
curl --version
# result of curl --version should be as follows:
# !!!! Make sure that curl and libcurl are both the newest version, in this case: version 7.45.0-DEV !!!!!!!!
#curl 7.45.0-DEV (i686-pc-linux-gnu) libcurl/7.45.0-DEV OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28
#Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
#Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
Advertisements
Comments
  1. […] How to compile and install newest version of curl from github in Ubuntu 14.04 LTS 64-bit […]

  2. […] How to compile and install newest version of curl from github in Ubuntu 14.04 LTS 64-bit […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s