How to set the path of shared library in Linux

Robert Bu
2008-02-27T02:22:33Z

Hello,

How can I set the search path of the shared libraries in Linux for GDB?
I tried "set solib-search-path path_to_my_shared_lib", but GDB still
tries the $LD_LIBRARY_PATH first. I have two versions of the same shared
library, one is in $LD_LIBRARY_PATH, the other is in
path_to_my_shared_libray ( not in $LD_LIBRARY_PATH). GDB just always
uses the one in $LD_LIBRARY_PATH.