cuda安装Installation failed log: [ERROR]: Unable to determine libdir
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
cuda安装Installation failed log: [ERROR]: Unable to determine libdir
目录
本机环境
- ubuntu20.04(GTX 2080ti)
- cuda10.02
- 使用的cuda安装包
cuda_10.2.89_440.33.01_linux.run
问题产生的过程
前面就不论述了,下载,安装。这里不安装cuda安装包中自带的显卡驱动。
这里报了错。
Installation failed. See log at /var/log/cuda-installer.log for details.
具如何查看log中ERROR的内容呢?
$ cat /var/log/cuda-installer.log | grep [ERROR] > a.txt
a.txt
文件中的具体错误内容如下:
[ERROR]: Unable to determine libdir
[ERROR]: Unable to determine libdir
...
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/CUDA_Toolkit_10.2-components/CUDA_Tools_10.2-components/CUDA_Command_Line_Tools_10.2-components/"
解决方案
参考了这个回答求助!!ubuntu20.04安装CUDA10.2失败!(事实证明搜索也是有技巧的。搜[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
这个就有相关结果了。)
将指令改为sudo ./cuda_10.2.89_440.33.01_linux.run --librarypath=/usr/local/cuda-10.2
,重新运行。操作和上面的相同。
xuyc@xuyc-Super-Server:~/Desktop$ sudo ./cuda_10.2.89_440.33.01_linux.run --librarypath=/usr/local/cuda-10.2
===========
= Summary =
===========
Driver: Not Selected
Toolkit: Installed in /usr/local/cuda-10.2/
Samples: Installed in /home/xuyc/, but missing recommended libraries
Please make sure that
- PATH includes /usr/local/cuda-10.2/bin
- LD_LIBRARY_PATH includes /usr/local/cuda-10.2/lib64, or, add /usr/local/cuda-10.2/lib64 to /etc/ld.so.conf and run ldconfig as root
To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-10.2/bin
Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-10.2/doc/pdf for detailed information on setting up CUDA.
***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 440.00 is required for CUDA 10.2 functionality to work.
To install the driver using this installer, run the following command, replacing <CudaInstaller> with the name of this run file:
sudo <CudaInstaller>.run --silent --driver
Logfile is /var/log/cuda-installer.log
测试cuda是否安装成功
接下来配置环境变量。
输入gedit ~/.bashrc
命令打开文件,在文件结尾输入以下语句,保存。
export PATH=/usr/local/cuda-10.2/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
更新环境变量配置
source ~/.bashrc
然后使用nvcc -V
测试以下是否能检测到Cuda,出现以下的信息就是成功啦。
GitHub 加速计划 / li / linux-dash
6
1
下载
A beautiful web dashboard for Linux
最近提交(Master分支:3 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献4条内容
所有评论(0)