Dear list,

Please CC me as I am not a subscriber to the list.

I am seeing the same issue as described in this previous post to the automake mailing list:

http://gnu-automake.7480.n7.nabble.com/quot-error-while-loading-shared-libraries-foo-so-0-cannot-open-shared-object-file-No-such-file-or-di-td3970.html

The issue is that my program uses a shared library installed by 'make install' at the same time as my program, but the shared library cache is not updated, resulting in the error

"error while loading shared libraries: foo.so.0: cannot open shared object file: No such file or directory"

when you try to run the program. This can be solved by manually running ldconfig or rebooting. Mostly my users do not know to do this, so we get bug reports. How can I have ldconfig run if necessary after make install? What exactly should I put in my Makefile.am or elsewhere to do this?

Alternatively, is there an alternative solution, or something else I'm missing? There was no update on the previous message since Jan 2008.

Thanks,
Richard Crozier


--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


Reply via email to