Change dynamic library search path for an executable

Each executable contains a list of pathes for loading dynamic library. You can get this list using:
readelf -d executable_name
or
chrpath -l executable_name

And it is possible to change this path using:
chrpath -r new_path_separated_by_double_colon executable_name

There are more detailled explanation here: http://www.eyrie.org/~eagle/notes/rpath.html

Comments are closed.