Installed curl but libcurl will not update

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

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

However, libcurl will not be updated. When i try

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

How to update libcurl ?

+7
curl ubuntu libcurl
source share
3 answers

Turns out I need to remove libcurl using sudo apt-get remove libcurl .

0
source share

A default installation like this will create a newly created libcurl in the /usr/local/lib directory. Your runtime linker will look for libcurl in its configured path, and it will probably find your old libcurl directory in /usr/lib .

You may need to edit /etc/ld.so.conf or change the setting otherwise so that the linker does not prefer the old one.

A more cruel way, of course, is to uninstall the distribution version using apt-get remove .

And btw: 7.28.0 is also a very old version.

+7
source share

In Ubuntu 14.04, I had to edit the /etc/ld.so.conf file and add it at the top.

/usr/local/bin

Then executed

$ldconfig

I'm not sure what that means, but it works. It's nice to hear the reasons in the comments or even edit.

Thanks!

0
source share

All Articles