10

I'm kind of new to these things. I do not know what command line is required to install latest version of libcurl. I followed few articles found on net but i get No acceptable C compiler found in $PATH. I'm on a debian server. Please help.

Vinay Jeurkar
  • 3,054
  • 9
  • 37
  • 56

3 Answers3

23
su -
apt-get update
apt-cache search ^libcurl
apt-get install <whatever_apt-cache_listed>

And be sure to check Google first, before asking these basic questions here.

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

idmean
  • 14,540
  • 9
  • 54
  • 83
Victor Nițu
  • 1,485
  • 13
  • 18
  • 1
    Using su is a bad habit, use [su -](http://unix.stackexchange.com/a/7021) instead – x-yuri Dec 30 '12 at 19:29
  • 5
    Using `su` is a bad habit. Use `sudo` instead. Then, you don't have to share root's password all over the place. – Randal Schwartz Mar 23 '14 at 20:56
  • 5
    on Debian systems there is no `sudo' by default. You cannot assume the user has it installed, therefore the provided solution is granted to work on every Debian machine. I hope that clarifies why I haven't used it. In the event sudo is installed, yes, I recommend using it instead of su-ing the tty. – Victor Nițu Mar 16 '15 at 21:21
  • 13
    Google is what led me here. – Brandon Apr 13 '17 at 16:21
  • 1
    Please don't advise people to do an apt-get update. – Owl Jul 28 '21 at 10:23
0

You can download the source code here, and compile it

./configure
make
sudo make install

You'll be in the last version

Ricardo Brandao
  • 141
  • 1
  • 3
  • 14
-14

Type in terminal:

apt-get update
apt-get install php5-curl
snickers2k
  • 394
  • 2
  • 5