cURL / Mailing Lists / curl-library / Single Mail

curl-library

libcurl Reporting Different Version Between Commands

From: Ben Thomas <benmailinglists_at_gmail.com>
Date: Mon, 29 Apr 2013 20:10:52 +0100

I previously had cURL 7.22.0 on Ubuntu 12.04 Server.. but I now need to
upgrade to cURL 7.30.0.

I've done the following to compile this version for Ubuntu:

wget http://curl.haxx.se/download/curl-7.30.0.tar.gz

tar -xvzf curl-7.30.0.tar.gz

cd curl-7.30.0/

./configure --prefix=/usr

make clean

make

make install

After doing all that I ran curl --version expecting to see the new version
installed. cURL had updated to 7.30.0 as expected, but libcurl hadn't:

curl 7.30.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1
zlib/1.2.3.4libidn/1.23 libssh2/1.2.8 librtmp/2.3 Protocols: dict file
ftp ftps gopher
http https imap imaps ldap pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet
tftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz
TLS-SRP

However, if I run "curl-config --version" I get libcurl 7.30.0 which is
correct.

Can anyone explain why there's a difference in version numbers? And how to
get them all showing the correct 7.30.0?

Thanks

Some additional info from commands:

"which curl-config" gives "/usr/bin/curl-config"

"which curl" gives "/usr/bin/curl"

"whereis curl" gives "curl: /usr/bin/curl /usr/include/curl
/usr/share/man/man1/curl.1.gz /usr/share/man/man1/curl.1"

"whereis libcurl" gives "libcurl: /usr/lib/libcurl.a /usr/lib/libcurl.so
/usr/lib/libcurl.la /usr/share/man/man3/libcurl.3"

"echo $PATH" gives
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-29