Skip to content
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.

Installation instructions and Ubuntu 22.04 incompatibility #311

Open
leprasmurf opened this issue Dec 21, 2022 · 0 comments
Open

Installation instructions and Ubuntu 22.04 incompatibility #311

leprasmurf opened this issue Dec 21, 2022 · 0 comments

Comments

@leprasmurf
Copy link

Hi,

I'm trying to install Tanoshi in an Ubuntu 22.04 LXD container using the precompiled linux release. I'm hitting an issue of missing libs:

tanoshi@tanoshi01:/opt/tanoshi$ bin/tanoshi --help
bin/tanoshi: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

tanoshi@tanoshi01:/opt/tanoshi$ ldd bin/tanoshi
        linux-vdso.so.1 (0x00007ffee51d8000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbd428d0000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbd428cb000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbd428c6000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbd427df000)
        libssl.so.1.1 => not found
        libcrypto.so.1.1 => not found
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbd427bd000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbd42595000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fbd45d76000)

I'm figuring the expanded list of dependencies in the workflow (https://github.com/faldez/tanoshi/blob/main/.github/workflows/release.yml#L98) is for building from source rather than running the precompiled binaries, so I used the Dockerfile's dependency line (https://github.com/faldez/tanoshi/blob/main/Dockerfile#L27) to fill the install guide's gaps. It doesn't look like Ubuntu 22.04 supports the SSL library before libssl3:

tanoshi@tanoshi01:~$ dpkg --list libssl3 libssl-dev ca-certificates
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name             Version                 Architecture Description
+++-================-=======================-============-================================================
ii  ca-certificates  20211016ubuntu0.22.04.1 all          Common CA certificates
ii  libssl-dev:amd64 3.0.2-0ubuntu1.7        amd64        Secure Sockets Layer toolkit - development files
ii  libssl3:amd64    3.0.2-0ubuntu1.7        amd64        Secure Sockets Layer toolkit - shared libraries

I was able to, as a temporary measure, pull libssl.so.1.1 and libcrypto.so.1.1 from another instance and add them in. Now the binary is responding as expected.

It would be nice to have the required packages listed along with the install instructions.

As for 22.04, would it be easy to update the libssl dependency to libssl3?

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

No branches or pull requests

1 participant