Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: GNUser on September 16, 2019, 02:03:54 PM
-
Sometimes I notice that installing a missing library extension on a running system seems to have no effect: tce-status -i says the library is installed, I can see it listed in /usr/local/lib, but the application that was complaining about that missing library continues to complain. Adding the library to onboot.lst and rebooting makes the problem go away. (This comes up when checking for a new extension's dependencies; having to reboot after adding each missing library gets tiresome.)
Does ld's cache need to be refreshed when a library extension is installed on a system sometime after boot? If so, what's the recommended way to do it?
-
Hi GNUser
Try:
ldconf
-
Hi GNUser
Sorry, that's:
ldconfig
-
Thank you, Rich. You're the best.
Next time it happens I'll try that and will report back.
-
Hi GNUser
Thank you, Rich. You're the best. ...
Maybe second best, I have to correct myself again:
sudo ldconfig
-
Even if second best, still one of the most helpful guys around. Thanks again.
-
tce-load runs ldconfig though, so I wonder what's happening.
-
Hi GNUser
... but the application that was complaining about that missing library continues to complain. Adding the library to onboot.lst and rebooting makes the problem go away. (This comes up when checking for a new extension's dependencies; having to reboot after adding each missing library gets tiresome.) ...
Something is off here. An extension won't load if something listed in its .dep file can't be found. Upon rereading you your original
post, it sounds like you might be creating an extension and the .dep file does not exist yet. By the way, dependencies should not
be listed in onboot.lst. To find the missing libraries an executable requires, do this:
ldd Path/To/Executable | grep -i found
Then using the Apps utility, click on the Search button and change it to Provides. Type the name of the missing library in the field
to the right of the provides button and hit enter. If the library is available the extension(s) providing it will show up. You can then
change the OnBoot button to Download + Load and load the extension without it being added to onboot.lst.
-
When I bumped into this issue I was still building the .dep file. I will pay more attention next time if/when it happens. Thanks!