Deepstream-app: error while loading shared libraries: libnvinfer.so.7: cannot open shared object file: No such file or directory

I am trying to run a deepstream object detection model from the docker container deepstream-l4t:5.0.1-20.09-samples.
when I run the command
deepstream-app -c source1_barcode.txt
I am getting the error.
deepstream-app: error while loading shared libraries: libnvinfer.so.7: cannot open shared object file: No such file or directory

Can you find ll /usr/lib/aarch64-linux-gnu/libnvinfer.so.7.1.3?

I removed everything and reinstalled a new jetpack from SDKmanager. Now I am able to run without any issues.

@Amycao - I have facing the same issue reported in this post. I am trying to run deepstream-app examples on a Jetson Nano.
I have installed deepstream 5.1 and I have Jetpack 4.5.1 which per docs should be compatible. Jetpack 4.5.1 already has the required CUDA, cuDNN and tensorRT.
However when I navigate to /usr/lib/aarch64-linux-gnu I find that I have libnvinfer.so.8, libnvinfer.so.8.0.1 and libnvinfer.so in the folder. I am NOT a linux user and hence can’t use SDK manager to flash jetpack again. Any alternate way to fix the issue?

Jetpack 4.5.1 includes cuDNN 8.0