less than 1 minute read

If you are using John the Ripper with CUDA, and you start to see errors like:
./unshadow: error while loading shared libraries: libcudart.so.6.5: cannot open shared object file: No such file or directory
First, check your paths. An example .bashrc might look like (64bit system):

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.