curl: symbol lookup error: curl: undefined symbol: curl_url_cleanup

When I type curl -v I get this error:

curl: symbol lookup error: curl: undefined symbol: curl_url_cleanup

I removed curl and reinstalled it, but the same error appeared.


Run sudo ldconfig, it solves "curl: symbol lookup error: curl: undefined symbol: curl_url_cleanup"

From : https://mysiar.github.io/devops/2020/04/23/curl-from-src.html