Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux - CURL_OPENSSL_4 not found #531

Open
belfour opened this issue Jan 6, 2019 · 5 comments
Open

Linux - CURL_OPENSSL_4 not found #531

belfour opened this issue Jan 6, 2019 · 5 comments

Comments

@belfour
Copy link

belfour commented Jan 6, 2019

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.

@mickelson
Copy link
Owner

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

@niel
Copy link

niel commented Feb 18, 2019

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.

@APz
Copy link

APz commented Apr 5, 2019

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.

@koile87
Copy link

koile87 commented Jul 17, 2020

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)

@sanketwadekar3
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants