wallet icon indicating copy to clipboard operation
wallet copied to clipboard

running on Linux fails: libcrypto.so.1.1

Open FlorinAndrei opened this issue 8 years ago • 3 comments

On Ubuntu 16.04 - downloaded the sources and compiled.

When launching the wallet app, it throws an error, saying libcrypto.so.1.1 is missing. The closest I have on my system is:

$ find /usr | grep libcrypto.so
/usr/lib/x86_64-linux-gnu/libcrypto.so

If I symlink libcrypto.so.1.1 to the existing .so, the wallet complains again: error loading OpenSSL library function "ECDSA_SIG_get0"

These are the ssl packages on my system:

$ dpkg -l | grep ssl
ii  flac                                        1.3.1-4                                      amd64        Free Lossless Audio Codec - command line tools
ii  libcurl4-openssl-dev:amd64                  7.47.0-1ubuntu2.5                            amd64        development files and documentation for libcurl (OpenSSL flavour)
ii  libevent-openssl-2.0-5:amd64                2.0.21-stable-2ubuntu0.16.04.1               amd64        Asynchronous event notification library (openssl)
ii  libflac8:amd64                              1.3.1-4                                      amd64        Free Lossless Audio Codec - runtime C library
ii  libgnutls-openssl27:amd64                   3.4.10-4ubuntu1.4                            amd64        GNU TLS library - OpenSSL wrapper
ii  libio-socket-ssl-perl                       2.024-1                                      all          Perl module implementing object oriented interface to SSL sockets
ii  libnet-smtp-ssl-perl                        1.03-1                                       all          Perl module providing SSL support to Net::SMTP
ii  libnet-ssleay-perl                          1.72-1build1                                 amd64        Perl module for Secure Sockets Layer (SSL)
ii  libssl-dev:amd64                            1.0.2g-1ubuntu4.10                           amd64        Secure Sockets Layer toolkit - development files
ii  libssl-doc                                  1.0.2g-1ubuntu4.9                            all          Secure Sockets Layer toolkit - development documentation
ii  libssl1.0.0:amd64                           1.0.2g-1ubuntu4.10                           amd64        Secure Sockets Layer toolkit - shared libraries
ii  libwavpack1:amd64                           4.75.2-2                                     amd64        audio codec (lossy and lossless) - library
ii  openssl                                     1.0.2g-1ubuntu4.9                            amd64        Secure Sockets Layer toolkit - cryptographic utility
ii  ssl-cert                                    1.0.37                                       all          simple debconf wrapper for OpenSSL

FlorinAndrei avatar Dec 17 '17 03:12 FlorinAndrei

It would be best if the wallet project could provide statically linked Linux binaries in the Releases section. By static linking, all library components that are required for the wallet to run are included in the executable.

This would be a great workaround for the diversity problem, which makes it so hard to provide an app that works on all Linux distributions. A statically linked binary is self-contained and works just fine as long as the kernel is not extremely old.

The size of the statically linked executable is usually not excessive, since only the library code that is actually needed is included in the file.

http://forum.lazarus.freepascal.org/index.php?topic=15712.0

FlorinAndrei avatar Jan 03 '18 01:01 FlorinAndrei

You can install it manually from the openssl website. Credit to the guy on stack overflow thread.

wget https://www.openssl.org/source/openssl-1.1.0g.tar.gz
tar xzvf openssl-1.1.0g.tar.gz
cd openssl-1.1.0g
./config -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)'
sudo make
sudo make install

Used the above to get the wallet running about 10 min ago.

TaysirTayyab avatar Jan 21 '18 06:01 TaysirTayyab

Sure, but that's a stop-gap measure. You can't ask all users to compile custom openssl version just to install a wallet.

FlorinAndrei avatar Jan 22 '18 21:01 FlorinAndrei