How to install latest version of libcurl on debian server?

I’m kind of new to these things. I do not know what command line is required to install the latest version of libcurl. I have been following several articles found on the net, but I don't have an acceptable C compiler found in $ PATH. I am on a debian server. Please, help.

+7
source share
3 answers
su - apt-get update apt-cache search ^libcurl apt-get install <whatever_apt-cache_listed> 

And be sure to check Google first before asking the following basic questions here.

EDIT: Thanks @ x-yuri for pointing out the difference su vs su - , it slipped through my fingers when I wrote this :-)

+16
source

You can download the source code here and compile it

 ./configure make sudo make install 

You will be in the latest version

0
source

Enter terminal:

 apt-get update apt-get install php5-curl 
-10
source

All Articles