Solved: okular requires libQtNetwork.so.4

Technical issues/questions of an intermediate or advanced nature.
User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Solved: okular requires libQtNetwork.so.4

Post#1 by francois » 30 Sep 2023, 10:25

okular requires libQtNetwork.so.4

It seems that okular misses a shared librarie

Code: Select all

guest@porteus:~/Downloads$ OKULAR
bash: OKULAR: command not found
guest@porteus:~/Downloads$ okular
okular: error while loading shared libraries: libQtNetwork.so.4: cannot open shared object file: No such file or directory
[code]guest@porteus:~$ okular okular: error while loading shared libraries: libQtNetwork.so.4: cannot open sha
[/code]

It is not on my installation:
root@porteus:/home/guest/Downloads# updatedb
root@porteus:/home/guest/Downloads# locate libQtNetwork.so.4
root@porteus:/home/guest/Downloads#

Looking for the librarie, one learns that it is within the main packages Qt5-5:
https://doc.qt.io/qt-6/qtnetwork-index.html

qt5-5.15.3 is on my installation.

Code: Select all

The root@porteus:/home/guest/Downloads# getmod -m qt5-5.15.3_20211130_014c375b-x86_64-2
Reading Package Lists...Done
qt5 is up to date.
0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Do you want to continue? [y/N] y

Done
root@porteus:/home/guest/Downloads# locate google-chrome-101.0.04951.54
It seems that I have to build the module. Is it?
https://doc.qt.io/qt-6/qtnetwork-index.html
Prendre son temps, profiter de celui qui passe.

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

okular requires libQtNetwork.so.4

Post#2 by beny » 30 Sep 2023, 17:01

francois if you want okular that is a software of kde plasma you have to use the getmod option on porteus you can download all the needed deps from salix and salix extra repos,and maybe are too much,but you can try, the link you posted is for the qt6 software,good luck.

fulalas
DEV Team
DEV Team
Posts: 2050
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

okular requires libQtNetwork.so.4

Post#3 by fulalas » 30 Sep 2023, 23:14

@francois, you have an old build of okular, built using Qt4, which is deprecated for years.

You can either use KDE (it already has Okular) or build okular from scratch, which seems a long journey.

Another solution would be using the AppImage, but the one that I found isn't working: https://github.com/felipefacundes/okula ... 4.AppImage

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

okular requires libQtNetwork.so.4

Post#4 by francois » 02 Oct 2023, 00:36

Thanks to both. Finally, old remnants from rc2:
Just found it. When we were in v 5.rc2, I was using old modules for v.4.0 this old google-chrome version was one of them, same for okular.

Thanks.
Prendre son temps, profiter de celui qui passe.

Post Reply