You can set the LD_LIBRARY_PATH or ROOT_LIBRARY_PATH shell environment variables.
LD_LIBRARY_PATH
ROOT_LIBRARY_PATH