CUDA. Samples: Installed in /home/user/, but missing recommended libraries

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

but missing recommended libraries

 

To fix problem in Ubuntu run:

$ sudo apt-get install g++ freeglut3-dev build-essential libx11-dev \
libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev

For RHEL/CentOS

$ sudo yum install freeglut-devel libX11-devel libXi-devel libXmu-devel \
make mesa-libGLU-devel

Fedora

$ sudo dnf install freeglut-devel libX11-devel libXi-devel libXmu-devel \
make mesa-libGLU-devel

SLES

$ sudo zypper install libglut3 libX11 libXi6 libXmu6 libGLU1 make

OpenSUSE

$ sudo zypper install freeglut-devel libX11-devel libXi-devel libXmu-devel \
make Mesa-libGL-devel

 

arstech

Leave a Reply

Your email address will not be published. Required fields are marked *