CUDA. Samples: Installed in /home/user/, but missing recommended libraries
After installing CUDA 10.1 in Ubuntu you may have error: Samples: Installed in /home/user/, but missing recommended libraries.
Because some CUDA samples use third-party libraries which may not be installed by default on your system.
Example output:
=========== = Summary = =========== Driver: Installed Toolkit: Installed in /usr/local/cuda-10.1/ Samples: Installed in /home/user/, but missing recommended libraries Please make sure that - PATH includes /usr/local/cuda-10.1/bin - LD_LIBRARY_PATH includes /usr/local/cuda-10.1/lib64, or, add /usr/local/cuda-10.1/lib64 to /etc/ld.so.conf and run ldconfig as root To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-10.1/bin To uninstall the NVIDIA Driver, run nvidia-uninstall Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-10.1/doc/pdf for detailed information on setting up CUDA. Logfile is /var/log/cuda-installer.log