Long time Debian user although not so familiar with all the system workings.
Following the problem I had with a fresh install of Buster here: viewtopic.php?f=17&t=145239, ld.so does not seem to be working correctly.
When writing an application, I keep the non-standard dependent libraries in a non-system directory (~/Application/lib) and I give this location as a library search path to the linker when compiling. I added this directory to my /etc/ld.so.conf file and re-ran ldconfig but one of the libraries is not picked up when I try to run my executable.
If I run ldd on my binary I get a line
- Code: Select all
libmylib.so => not found
If I add the lib directory to my $LD_LIBRARY_PATH then the application can find the binary and works correctly.
If I run
- Code: Select all
/sbin/ldconfig -p | grep mylib
I can see libmylib.so is found in my ~/Application/lib directory, as expected.
I suspect something about the ld.so system is running for root but not for users.
Any help appreciated. Thanks in advance.