I encountered the following error when trying to run a TensorFlow program:
ImportError: libcudnn.Version: cannot open shared object file: No such file or d
Make sure the $LD_LIBRARY_PATH environment variable is set to the correct path.
From the cuDNN Install Guide:
ALL PLATFORMS
Extract the cuDNN archive to a directory of your choice, referred to below as .
Then follow the platform-specific instructions as follows.
LINUX
cd
export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
Add to your build and link process by adding -I to your compile
line and -L -lcudnn to your link line.
OS X
cd
export DYLD_LIBRARY_PATH=`pwd`:$DYLD_LIBRARY_PATH
Add to your build and link process by adding -I to your compile
line and -L -lcudnn to your link line.
WINDOWS
Add to the PATH environment variable.
In your Visual Studio project properties, add to the Include Directories
and Library Directories lists and add cudnn.lib to Linker->Input->Additional Dependencies.