John the Ripper shared library error path fix on Linux
./unshadow: error while loading shared libraries: libcudart.so.6.5: cannot open shared object file: No such file or directory
export CUDA_HOME=/usr/local/cuda
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:$LD_LIBRARY_PATH
PATH=${CUDA_HOME}/bin:${PATH}
export PATH
If you are still getting the shared library error, then check /etc/ld.so.conf.
Add the path to your cuda library: /usr/local/cuda/lib64
Then run
sudo ldconfig
Now try running unshadow again, and the problem should be fixed.