Error while loading shared libraries: libaravis-0.8.so.0

Running Fedora:

$ uname -r
5.18.9-200.fc36.x86_64

I cloned from git, installed the dependencies, and built according to the procedure described here Aravis – 0.8: Installation and Debug

Build went fine. Now running:

$ arv-viewer-0.8
arv-viewer-0.8: error while loading shared libraries: libaravis-0.8.so.0: cannot open shared object file: No such file or directory

Also, running:

sudo ldconfig 

doesn’t help either.

I can find the library here:

$ locate libaravis-0.8.so.0
/usr/local/lib64/libaravis-0.8.so.0

$ file /usr/local/lib64/libaravis-0.8.so.0
/usr/local/lib64/libaravis-0.8.so.0: symbolic link to libaravis-0.8.so.0.8.22

$ locate libaravis-0.8.so.0.8.22
/usr/local/lib64/libaravis-0.8.so.0.8.22

$ file /usr/local/lib64/libaravis-0.8.so.0.8.22
/usr/local/lib64/libaravis-0.8.so.0.8.22: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=a07499e40549ae0af4be08f249336c13598f2d1b, with debug_info, not stripped

Any ideas?

Thanks

Hi,

The library is installed in the default prefix /usr/local, which is probably not included in the library search path by default. Either set the installation prefix to /usr, or refer to your distribution documentation to find how to add /usr/local/lib64 to the search path.

Emmanuel.

Thanks Emmanuel. I stuck a file in /etc/ld.so.conf.d/ and ran ldconfig. That fixed it.