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
?
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/
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'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?
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 .
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With