Ramachandra Iyer wrote: Fri Aug 12, 2022 9:31 am
I have installed Anydesk 6,2 pet in easyos. However, having some dependency problem as shown below
opt/anydesk/anydesk: error while loading shared libraries: libpolkit-gobject-1.so.0: cannot open shared object file: No such file or directory.
How to make it working in easyos?.
Although its best --and most likely to succeed-- if libraries are compiled specifically under and for the operating system, often what makes libraries having the same name but used in more than one operating system different is how they are packaged. Packaging enables an operating system to know how to install a library in the right location.
Not infrequently, however, when a required library is not available for your operating system, you MAY be able to make use of a library packaged for a different operating system by downloading it, extracting it, and manually copying the required library to the location your operating system expects to find libraries: e.g. /lib, /usr/lib/, /usr/local/lib, /usr/lib64. [Sometimes location doesn't matter, or matters only if they're identically named but structurally different and one has to have priority. Puppys --and EasyOS-- will look in all common locations].
Before continuing, however, I suggest that you install LIstDD into EasyOS if not already present. I also recommend UExtract. The latter is a utility able to extract almost all packages. The former enables you to examine a binary and determine if your operating system lacks required libraries. You'll find those applications on the Additional Software Forum, Utilities SubForum. They are 'no-arch' --essentially bash-scripts-- and EasyOS is sufficiently like Puppys that IIRC they will function.
We know that your system lacks libpolkit-gobject-1.so.0. ListDD will tell you if any others are missing. Might as well search for all missing libraries at the same time.
Plug the name of the missing library into the Search box at the top of https://pkgs.org/ dropping anything following libpolkit-gobject-1. The ".so.0" is too specific and may no longer be available while newer version --e.g. 'so.0.1'-- may be.
pkgs.org will produce a list of all Linux operating system having libraries with that name. Select a Linux reasonably contemporary with EasyOS. FYI, I've used Fossapup64 applications in EasyOS and EasyOS Osmo in several recent Puppys. Follow the links pkgs.org provides to the download location on some Linux's repository and download the library from there.
UExtract the package and copy the required file into a location where EasyOS expects to find libraries.
You may have to create a symlink. For example, Anydesk needs libpolkit-gobject-1.so.0. But the file you download may be named libpolkit-gobject-1.so.0.32. In such case, to create a symbolic link you would open a terminal in the folder you've placed libpolkit-gobject-1.so.0.32 and type the command:
ln -s libpolkit-gobject-1.so.0.32 libpolkit-gobject-1.so.0
Translation "ln -s" [link sysmbolic] name of file-you-have name of file-you-need.
After each such 'install' restart-x and re-run ListDD.
Be warned the procedure can be time-consuming and DOESN'T ALWAYS result in a functional application. Sometimes you'll discover dependencies you can't find. And sometimes it's not just a packaging problem: the library from an 'alien' distro although bearing an appropriate name may be so different that it requires other libraries not only unique to that distro but incompatible with other distros.