The current version of raspbian stretch supports curl 7.52.1, however for an application I'm running I need curl 7.56 or above. How could I manually install the latest version of curl without breaking the linux distro by overwriting the version of curl it relies on?
For background, I know how to manually install curl:
wget https://curl.haxx.se/download/curl-7.64.1.tar.gz
tar -xvf curl-7.64.1.tar.gz
cd curl-7*
./configure
make
sudo make install
But this will overwrite the version of curl without overwriting libcurl, causing issues, for instance executing curl via the terminal will result in the error:
Symbol lookup error undefined symbol: curl_mime_init
Which is because curl_mime_init is defined in the latest version of curl but not in libcurl 7.52.
I will update the symlink in /usr/bin to point to the new installed version of curl:
sudo ln -sf /usr/bin/curl /usr/bin/curl752
sudo ln -sf /usr/local/bin/curl /usr/bin/curl
When I run curl --version after this I get the following output, still with the mime error:
curl 7.64.1 (armv7l-unknown-linux-gnueabihf) libcurl/7.52.1 OpenSSL/1.0.2l zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Release-Date: 2019-03-27
So curl is upgraded, but libcurl is still 7.52.1.... which is likely causing the failures.