chylex / Discord-History-Tracker

Desktop app & browser script that saves Discord chat history into a file, and an offline viewer that displays the file.
https://dht.chylex.com
MIT License
475 stars 83 forks source link

Unable to run Linux version on Ubuntu 22.04.1 #197

Closed Andrej-VB closed 2 years ago

Andrej-VB commented 2 years ago

Similarly to #171, double-clicking the extracted executable file seems to have no effect

TheTechRobo commented 2 years ago

Have you tried this?

chmod u+x <PATH TO FILE>
Andrej-VB commented 2 years ago

Just tried it, unfortunately nothing has changed. Also tried adding .run and .bin to the end of the file's name. But running those seems to be the same - nothing happening.

chylex commented 2 years ago

I don't have Ubuntu but I tried Fedora, the permissions are set correctly and double-clicking works fine. Try running DHT via terminal to see if there's any crashes.

Andrej-VB commented 2 years ago

Silly of me not to immediately realise there's another part of this

chmod u+x <PATH TO FILE>

which is: ./<PATH TO FILE>

The program then actually runs in the terminal, after which there's this response:

No usable version of libssl was found Aborted (core dumped)

I've then tried to install openssl like so:

wget openssl.org/source/openssl-1.1.1o.tar.gz
tar -xvzf openssl-1.1.1o.tar.gz
cd openssl-1.1.1o
./config

Running in terminal afterwards gives the same error. I will try installing other versions of openssl or upgrading .NET core and report back when successful. If anyone has a clue on what to try first please let me know.

chylex commented 2 years ago

Are you using the Linux version or the generic "Other" one? The Linux version is self-contained, the .NET runtime is already included in it.

Andrej-VB commented 2 years ago

Trying with the Linux version. Didn't use the Other too much

chylex commented 2 years ago

I don't think ./config is enough to actually install openssl, see https://github.com/dotnet/core/issues/4749#issuecomment-1200245422

Andrej-VB commented 2 years ago

Thank you! This worked like a charm.

By default Ubuntu 22.04 comes with openssl version 3. After installing the 1.1.1c per instructions in this comment, rebooting, and installing again, I've managed to run the DHT through terminal with

chmod a+x <PATH TO FILE>
./<PATH TO FILE>

You can check what version of openssl is running with openssl version -v

Once the output was OpenSSL 1.1.1c 28 May 2019, DHT ran successfully

PS. If for some reason there's an error with make make: *** [all] Error 2, it goes away aftersudo apt install libfl-dev