Error while loading shared libraries:

Running Fedora:

$ uname -r

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: 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

$ file /usr/local/lib64/
/usr/local/lib64/ symbolic link to

$ locate

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

Any ideas?



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.


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