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
'프로그래밍 언어 > CUDA' 카테고리의 다른 글
[CUDA] CudaDeviceProp 정리 (0) | 2021.04.05 |
---|---|
[CUDA] printf not working (0) | 2021.01.05 |
[CUDA] 클러스터의 계산노드 nouveau 문제점 해결 (0) | 2020.12.28 |
[CUDA] 한 컴퓨터에 여러 버전 cuda 설치하기 (3) | 2020.12.24 |
댓글