Setting up Linux program lib directory search: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:lib路径
for example:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mylib
This setting is only temporary environment variable, after closing the terminal is gone, if you want permanent, you can add commands to the /etc/profile
environment variable configuration file