DEV Community

Discussion on: Using libcurl3 and libcurl4 on Ubuntu 18.04 (Bionic)

Collapse
 
ahukkanen profile image
Antti Hukkanen

I'd also like to add here that it is not necessary to install the libcurl3 package since you can just download it and extract the .so-file you need from there.

This is what I eventually did:

$ mkdir ~/libcurl3 && cd ~/libcurl3
$ apt-get download -o=dir::cache=~/libcurl3 libcurl3
$ ar x libcurl3* data.tar.xz
$ tar xf data.tar.xz
$ cp -L ~/libcurl3/usr/lib/x86_64-linux-gnu/libcurl.so.4 /usr/lib/libcurl.so.3
$ cd && rm -rf ~/libcurl3

What it does:

  • Create a temporary libcurl3 directory in your home path and go there
  • Download the libcurl3 package to the newly created folder
  • Extract a file named data.tar.xz from that package archive
  • Extract the data.tar.xz file to the current folder
  • Copy the referenced file of the libcurl.so.4 symlink to /usr/lib/libcurl.so.3 (don't mind the .4 suffix, as noted it is actually version 3)
  • Go back home and remove the temporary directory from your home path