Shared libraries in the same folder as the application in TCSH
1 answer
Two simple options.
- You can set a variable
LD_LIBRARY_PATH
inside a script (see Section 3.3.1. Of the public libraries HOWTO). There are problems with this approach for production code, but if installed in a shell script it's probably ok. -
You can call your application with the libraries specified on the command line by directly invoking
ld-linux
the program loader described in the manpage and HOWTO:/lib/ld-linux.so.2 --library-path PATH EXECUTABLE
+2
source to share