1

I have /foo/lib64/bar.so

I could link it correctly but when I start my application, it complains:

myapps: error while loading shared libraries: bar.so: cannot open shared object file: No such file or directory

I created /etc/ld.so.conf.d/bar.conf to have

/foo/lib64

And I did try to delete the cache /etc/ld.so.cache and rebuild.

"ldconfig -v" shows that /foo/lib64 has no dynamic library:

/foo/lib64:
/lib:
/lib64:
       libnl.so.1 -> libnl.so.1.1.4

So certainly ldconfig picks up bar.conf. If I append /foo/lib64 to LD_LIBRARY_PATH, it works.

How can I fix it without renaming bar.so (or symlinking) and without appending /foo/lib64 to LD_LIBRARY_PATH?

Thanks in advance!

Related unresolved post

HCSF
  • 2,387
  • 1
  • 14
  • 40

0 Answers0