Shared libraries in the same folder as the application in TCSH

I am using a locally compiled Linux remote server application. Since I don't have a root account, I cannot put the required shared libraries in / usr / lib. Is there a way to overcome this? I put the libraries in the same folder and changed the "path" variable, but didn't work.

+2


source to share


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







All Articles