ubuntu18.04 安装cuda8.0遇到Can't locate InstallUtils.pm的问题
遇到的问题解决方法
遇到的问题
官网下载cuda8.0的时候没有ubuntu18.04的版本,于是选择了ubuntu16.04的.run包下载。
安装的过程中报错。
Error: unsupported compiler: 7.5.0. Use --override to override this check.
===========
= Summary =
===========
Driver: Not Selected
Toolkit: Installation Failed. Using unsupported Compiler.
Samples: Not Selected
解决方法
安装时使用以下命令,还是报错。
sudo sh cuda_8.0.27_linux.run --override
报错内容
Can't locate InstallUtils.pm in @INC (you may need to install the InstallUtils module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./install-linux.pl line 6.
BEGIN failed--compilation aborted at ./install-linux.pl line 6.
参考Can’t locate InstallUtils.pm in @INC解决,具体方法如下。
./cuda*.run --tar mxvf
cp InstallUtils.pm /usr/lib/x86_64-linux-gnu/perl-base
export $PERL5LIB
sudo sh cuda_8.0.27_linux.run --override