sudo vim /etc/ld.so.conf include yourdir path to the nearest layer
sudo ldconfig
临时的方法
vim /etc/profile
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/nvidia/deepstream/deepstream-5.0/filename:/opt/nvidia/deepstream/deepstream-5.0/filename/libs/filename
When there are multiple paths, add: to prevent overwriting
source /etc/profile