export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:libdir
, where libdir
is the place the shared library locates. To automate this step, put the above command in the .bashrc file in the home directory.
Note that this is not necessary if all the necessary libraries are put in the system library path such as /lib
or /usr/lib
.