2

I have recently upgraded from Kubuntu 16 to 18. When I try to run okular in a terminal (konsole) as a user (as I have been successfully doing before, in vs 16), in vs 18 it fails, giving a message error: "Unable to find the okular component: The shared library was not found". I can run okular from the Application Menu, and also from terminal provided I run it with sudo, but not when I try as a user. I wonder what has changed in the upgrading and how to fix the problem. Thanks.

Raffa
  • 34,963

2 Answers2

0

Perhaps this is not the solution you are asking for, but I fixed this on my machine by removing the snap version of Okular and installing the apt version instead.

mikeglaz
  • 173
-1

I found the answer to the mystery. It was in my .bashrc file which contained a line: export LD_LIBRARY_PATH=/usr/local/Qt/5.10.1/gcc_64/lib:$LD_LIBRARY_PATH which caused this and other similarly odd problems with other applications (kilefor instance). This appeared after upgrading, as that line was harmless before. I must finally mention that the quoted library directory exists in my installation (i.e. the problem is not caused because the directory is lacking).