I'm trying to centralize my executables and libraries but I still want to be able to execute an input file from anywhere in the file tree without having to copy in the executable and the library every time.
Now I centralized everything in
PATH=$PATH:/usr/lib/pvm3/lib:/home/HobbsFolder/bin/ to the
.bashrc. Checking with
echo $PATH shows the expected path. Starting the executable from a random folder works, as long as the library is placed in the folder, where the computation is started.
So, for some reason the system finds the executable but not the library in
/home/HobbsFolder/bin/. I tried placing it in
/usr/local/lib and running
ldconfig, which to my understanding is supposed to generate a link, but
ldconfig -v shows no such thing.
I don't have access to the binaries so I can't recompile anything. The system classifies the file-type as unknown.
Is there any correct place for placing external libraries? What can I do to make the system understand that this is not just some random text-file or something and it is supposed to look in THIS folder when I execute that executable?