본문 바로가기
프로그래밍 언어/CUDA

[CUDA] CUDA11.1 Install: Missing recommended library:

by UltraLowTemp-Physics 2020. 12. 25.
728x90

Cuda 11.1을 설치를 한 후 아래와 같이 missing recommend libraries가 발생했다.

$ sh cuda_11.1.0_455.23.05_linux.run --toolkit --toolkitpath=/usr/local/cuda-11.1
===========
= Summary =
===========

Driver:   Installed
Toolkit:  Installed in /usr/local/cuda-11.1/
Samples:  Installed in /home/users/, but missing recommended libraries

Please make sure that
 -   PATH includes /usr/local/cuda-11.1/bin
 -   LD_LIBRARY_PATH includes /usr/local/cuda-11.1/lib64, or, add /usr/local/cuda-11.1/lib64 to /etc/ld.so.conf and run ldconfig as root

To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-11.1/bin
To uninstall the NVIDIA Driver, run nvidia-uninstall
Logfile is /var/log/cuda-installer.log

 

이때, cuda-installer.log 파일을 살펴보니, 아래와 같은 라이브러리가 없다는 내용이 나왔다. 

$vim /var/log/cuda-installer.log 
...
19251 [WARNING]: Missing recommended library: libGLU.so
19252 [WARNING]: Missing recommended library: libX11.so
19253 [WARNING]: Missing recommended library: libXi.so
19254 [WARNING]: Missing recommended library: libXmu.so
...

 

해당 라이브러리를 설치하기 위해 아래의 명령어를 입력한다[1].

sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev 

 

그 후, 다시 cuda를 설치하면 아래와 같이 정상적으로 설치가 된다. 

===========
= Summary =
===========

Driver:   Installed
Toolkit:  Installed in /usr/local/cuda-11.1/
Samples:  Installed in /home/users/

Please make sure that
 -   PATH includes /usr/local/cuda-11.1/bin
 -   LD_LIBRARY_PATH includes /usr/local/cuda-11.1/lib64, or, add /usr/local/cuda-11.1/lib64 to /etc/ld.so.conf and run ldconfig as root

To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-11.1/bin
To uninstall the NVIDIA Driver, run nvidia-uninstall
Logfile is /var/log/cuda-installer.log

Reference
[1] www.programmersought.com/article/3977158789/

728x90

댓글