I have written a small HTTPServer application using Poco and I get the following error during runtime:
factoryProject> ./httpServer ./httpServer: error while loading shared libraries: libPocoNet.so.16: cannot open shared object file: No such file or directory
My libraries successfully linked during compilation because they were located in a specific directory that I pointed to in my make file using a -L/some/path
.
I have read up on the ldconfig command and it stated that it usually looks for libraries in /usr/lib
, but I do not have admin privee to add the Poco libraries into that directory.
How do I point to that a custom library directory so that ld will load it during runtime?