attract icon indicating copy to clipboard operation
attract copied to clipboard

Linux - CURL_OPENSSL_4 not found

Open belfour opened this issue 6 years ago • 5 comments

Hi,

Fresh install of Linux Mint 19.1, tried Bionic version 2.5 and 2.51 and receive the following error. Installing attract: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version CURL_OPENSSL_4' not found (required by attract) ` Running apt-get install libcurl4 uninstalls Attract and visa versa.

belfour avatar Jan 06 '19 05:01 belfour

This is one where I could really use the help of someone who knows a bit about ubuntu packaging.

The pre built linux packages are built using pacur: https://github.com/pacur/pacur

The config: https://github.com/mickelson/attract/blob/master/util/linux/pacur/PKGBUILD

When the bionic package is built, it looks like the "libcurl4-openssl-dev" is the package that is being used to compile against. There are a couple of different options for libcurl dev packages, and maybe this isn't the right one to use?

Th

mickelson avatar Jan 15 '19 04:01 mickelson

I built attract on Linux Mint 19.1 using the libcurl4-gnutls-dev package as the .deb wanted to uninstall my curl, php and php-curl extension and other packages in order to install. Should be the same for Ubuntu.

niel avatar Feb 18 '19 03:02 niel

I tried to install the provided packages into a fresh 18.04 installation and had the same exact issue.

The problem appears to be a typo in the Debian control file. It lists libcurl3 as a dependency, yet the program actually depends on libcurl4 shared libraries. Since the versions are mutually exclusive, installing the correct version uninstalls libcurl3 and attractmode packages.

Fix the file debian/control, edit line "Depends: " and change "libcurl3" -> "libcurl4", then repackage it.

If you're just a random person looking for the magic commands to make this without installing the whole build environment, you're in luck as here's how you can edit the package contents:

Download the package, in this example we'll use attract_2.5.1-0ubuntu1.bionic_amd64.deb. Put the file in /tmp or other temporary directory, then switch to it.

  1. dpkg-deb -R attract_2.5.1-0ubuntu1.bionic_amd64.deb contents
  2. edit contents/DEBIAN/control, locate line that starts with Depends, change "libcurl3" from there to say "libcurl4", then save
  3. dpkg-deb -b contents fixed.deb

Now you're ready to install fixed.deb with dpkg -i. If you haven't installed the dependencies yet, run "apt -f install" after that.

APz avatar Apr 05 '19 20:04 APz

Hi,

I have the opposite of this issue, for me it says "CURL_OPENSSL_3 not found". Running Buster with libcurl4 on RasPi 3b+. Do I have to install another version of AM? If yes, what is the command? :-)

Thanks for the great work by the way!

Cheers

20200711_184747 (1)

koile87 avatar Jul 17 '20 14:07 koile87

Remove "/usr/lib/x86_64-linux-gnu/libcurl.so.4" file by using the command: sudo rm /usr/lib/x86_64-linux-gnu/libcurl.so.4

Create softlink again by using the command : sudo ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4.5.0 /usr/lib/x86_64-linux-gnu/libcurl.so.4

sanketwadekar3 avatar Dec 22 '20 07:12 sanketwadekar3