pentix / qjournalctl

A multi-platform, Qt-based frontend for systemd's journalctl command. Accepting local as well as remote (SSH) data sources.
GNU General Public License v3.0
166 stars 17 forks source link

app links with /usr/lib/x86_64-linux-gnu/libssh.so.4 not /usr/local/lib/libssh.so.4.8.6 #73

Open ggatis opened 3 years ago

ggatis commented 3 years ago

Installed libssh.so.4.8.6 according instructions on Ubuntu resulting in /usr/local/lib/libssh.so.4.8.6. After succesful make install "qjournalctl" gives: ./qjournalctl: /usr/lib/x86_64-linux-gnu/libssh.so.4: no version information available (required by ./qjournalctl) ./qjournalctl: relocation error: ./qjournalctl: symbol ssh_session_is_known_server version LIBSSH_4_5_0 not defined in file libssh.so.4 with link time reference It turns out qjournalctl uses systems /usr/lib/x86_64-linux-gnu/libssh.so.4.5.0 not /usr/local/lib/libssh.so.4.8.6.

pentix commented 3 years ago

Hi there! What version of Ubuntu are you using? (I assume the 18.04 LTS version?)

In general, the loader will search for runtime linked libraries in your $LD_LIBRARY_PATH variable consecutively, where /usr/lib/ is probably appearing before /usr/local/lib/

Unless you want to play around with the path or patchelf and cohorts, I suggest manually removing libssh-4 such that you don't crumble your system with multiple versions of the same library.

Sorry that's still a problem, as long as Ubuntu sticks to the 0.8.0 version of libssh (and it looks like that's going to be the case until 2023), manual installation and problems such as these are unavoidable :grimacing:

I hope my suggestion works for you and fixes your problem :)