ldconfig
$ export LD_LIBRARY_PATH="~/myprogdir/lib/:$LD_LIBRARY_PATH" $ ./program
ldd
LD_LIBRARY_PATH