Error while loading shared libraries: libnvinfer.so.7: cannot open shared object file: No such file or directory

Description

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

This is the error I’m getting while trying to run Tensorrt sample code.
The libraries are all mapped, which I checked using ldd command.

Environment

TensorRT Version-7.1.3.4:
GPU Type-Nvidia:
Nvidia Driver Version-440.33.01:
CUDA Version-10.2:
CUDNN Version-8.0:
Operating System + Version- Ubuntu 18.04:
Python Version-3.7:

hi @ayckulwe,
Request you to use TRT NGC containers to avoid system dependencies related issues.
Please follow the below link for reference to run the sampleOnnxMNIST.
https://github.com/NVIDIA/TensorRT/tree/master/samples/opensource/sampleOnnxMNIST#running-the-sample

Thanks!

Thanks for the quick reply but I realized that I was using the wrong version of cudnn which was not compatible. I was using cudnn 8.0 for cuda 11.0 instead of cuda 10.2.

1 Like

I have a similar error, the version I installed of cuda was 11.7 and cuDNN v8.7.0