I'm currently starting to work with Shared Libraries under Linux (OpenSuse). The Shared Libraries I am writing are used by a bunch of small programs that provide some tools for electrical engineering. Thus the Libraries are very specific. Therefore I would like to keep the programs and the shared libraries in the users home directory.
Up to now I added the path of the project folder to
/etc/ld.so.conf which works fine. There are just two problems.
First, the user needs root privileges to change the content of
ld.so.conf which I would like to avoid. For the user it should be as easy as possible to run the software.
The second problem is, that the programs aren't running anymore if the user renames or moves the project folders (containing program and libraries). This might confuse some users.
Is there any way add a path to the dynamic linker without root privileges (I'm thinking of starting my application from a script that previously adds the current path to the dynamic linker)?