"error while loading shared libraries"

hello everyone,

i am working with CUDA 8.0, when i am trying to execute file, i got this error “./rCUDAd: error while loading shared libraries: libcudnn.so.5: cannot open shared object file: No such file or directory”

i tried many solutions as below but still the error is there:

  1. export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH

  1. $ sudo echo “/usr/local/cuda-5.0/lib64” > /etc/ld.so.conf.d/cuda.conf

    $ sudo ldconfig


  1. i opened .profile file in the editor but this line isn’t there to change:
    LD_LIBRARY_PATH=“/usr/lib:/usr/openwin/lib:/usr/dt/lib:/X11.6/lib:/X11.5/lib:/uva/lib:/gnu/lib”

Did you install cudnn? It is a separate install from the CUDA install.

If you installed the cudnn library, then copy the library to the location /usr/local/cuda-8.0/lib64

And this is incorrect:

$ sudo echo “/usr/local/cuda-5.0/lib64” > /etc/ld.so.conf.d/cuda.conf

that should be 8.0, not 5.0