Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installed curl but libcurl wont update

I am on Ubuntu 12.04. I just updated the default CURL from 7.22 to 7.28 from source code.

wget http://curl.haxx.se/download/curl-7.28.0.tar.gz
./configure
make
make install

However, libcurl wont update. When I try

curl --version
curl 7.28.0 (i686-pc-linux-gnu) libcurl/7.22.0

How to update libcurl?

like image 281
Gaby Solis Avatar asked Jan 17 '15 07:01

Gaby Solis


People also ask

How do I update my curl version?

Installing curlLog into your server via SSH. Make sure you're in your user's home directory. Locate the version you wish to install here: https://curl.se/download/

How do I install Libcurl?

Update your Ubuntu box, run: sudo apt update && sudo apt upgrade. Next, install cURL, execute: sudo apt install curl. Verify install of curl on Ubuntu by running: curl --version. Search for libcurl bindings for your programming needs: apt-cache search libcurl | grep python.

What is the latest curl version?

What's the latest curl? The most recent stable version is 7.86.0, released on 26th of October 2022. Currently, 78 of the listed downloads are of the latest version. Where's the code?

How do you check curl is installed or not in Ubuntu?

The curl package is pre-installed on most Linux distributions today. To check whether the Curl package is installed on your system, open up your console, type curl , and press enter. If you have curl installed, the system will print curl: try 'curl --help' or 'curl --manual' for more information .


1 Answers

A default install like that will put the newly built libcurl in the /usr/local/lib directory. Your run-time linker will look for libcurl in its configured path and it probably finds your old libcurl dir first in /usr/lib.

You may need to edit /etc/ld.so.conf or change the setup otherwise so that the linker won't prefer the old one.

A more brutal way is of course to uninstall the distro version with apt-get remove.

And btw: 7.28.0 is also a very old version.

like image 139
Daniel Stenberg Avatar answered Sep 16 '22 18:09

Daniel Stenberg