How to Manually Install Curl Command on Debian Linux

How to Manually Install Curl Command on Debian Linux

What is it Curl command?

This is coppied text from its official page:

curl is a command line tool for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a busload of other useful tricks.

This is short tutorial how to install curl on your Linux (Ubuntu) server. First I tried to run this command but it failed:

sudo apt-get update && sudo apt-get install php5-curl

Then I installed Curl on my Debian Linux server manually using these steps and I succeeded.

1. Go to destination folder

In my Ubuntu destination folder is "Download"

cd /usr/local/src

2. Download latest Curl package

Advertisement

Download latest Curl package. In the time of post update it's 7.45.

wget http://curl.haxx.se/download/curl-7.36.0.tar.gz

3. Unzip it and go to newly created folder

tar -xvzf curl-7.36.0.tar.gz
rm *.gz
cd curl-7.36.0

Run configuration

./configure

Node: In this step I got some error. Google suggested to use following command as solution:

apt-get install build-essential

Something was downloaded and then I tried to run ./configure again. It worked.

Run "make" and then "make install" command

sudo make
sudo make install

Restart Apache

/etc/init.d/apache2 restart

After restarting Apache manual installation of Curl command on Debian Linux server is over and you can start to use it.

Advertisement

Post is listed in the Drupal category and marked with the following tag(s): cURL.