[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Updating the shared library cache automatically using ldconfig
From: |
Richard Crozier |
Subject: |
Updating the shared library cache automatically using ldconfig |
Date: |
Fri, 06 Dec 2013 08:56:11 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 |
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.
- Updating the shared library cache automatically using ldconfig,
Richard Crozier <=