How can I have both libcurl3 and libcurl4 on Linux?.

How can I have both libcurl3 and libcurl4 on Linux?.

We needed to run libcurl3 and libcurl4 on Linux server for some reason at any point in time.


Many third party packages, libraries, etc require libcurl3 while curl itself requires libcurl4.

  1. Need to get a copy of libcurl3 and save it to your /usr/lib directory. 
============================
Ubuntu
===========================
  • sudo apt install libcurl3
  • sudo cp /usr/lib/x86_64-linux-gnu/libcurl.so.3 /usr/lib/
============================
Redhat/CentOS/Kali Linux
============================
  • sudo yum install libcurl3
  • sudo cp /usr/lib/x86_64-linux-gnu/libcurl.so.3 /usr/lib/
Now install libcurl4
============================
Ubuntu
===========================
  • sudo apt-get install libcurl4 libcurl4-openssl-dev
============================
Redhat/CentOS/Kali Linux
============================
  • sudo yum install libcurl4 libcurl4-openssl-dev




Related Posts

Leave a Reply

Your email address will not be published.