LD_LIBRARY_PATH

Dear newsgroup,

I’ve got problems with the dynamic linking of libraries for several
programs: Even if all necessary directories are included in the
LD_LIBRARY_PATH variable and the .so files exist the program cannot find
the library.
I set the LD_LIBRARY_PATH variable in the file /etc/profile.d/local.sh
and if I check the environment in a terminal window the path seems to be
okay.
Does anybody know some solution for the problem or has got similar
experiences?

With regards, Thomas


Thomas Reisinger
t.reisinger@tu-bs.de

Thomas Reisinger <t.reisinger@tu-bs.de> wrote:

Dear newsgroup,

I’ve got problems with the dynamic linking of libraries for several
programs: Even if all necessary directories are included in the
LD_LIBRARY_PATH variable and the .so files exist the program cannot find
the library.
I set the LD_LIBRARY_PATH variable in the file /etc/profile.d/local.sh
and if I check the environment in a terminal window the path seems to be
okay.
Does anybody know some solution for the problem or has got similar
experiences?

Is this under 6.3.0 or 6.2.1?

Are you running the programs as setuid root?

6.3.0 changed this – check the release notes for details, looking for
LD_LIBRARY_PATH.

Also, you can export DL_DEBUG=1 when trying to resolve this, and it should
spit out some verbose messages about what it is trying to do.

-David

QNX Training Services
http://www.qnx.com/services/training/
Please followup in this newsgroup if you have further questions.