Ubuntu 17.04 CUDA 8.0 安装问题

问题描述
使用CUDA源文件(cuda_8.0.61_375.26_linux.run)安装CUDA 8.0时,产生以下问题:

Using more to view the EULA.

Installing the CUDA Toolkit in /usr/local/cuda-8.0 … Verifying
archive integrity… All good.

Uncompressing NVIDIA
CUDA……………………………………………………………………………………

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.24.1
/usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24
/usr/share/perl/5.24 /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.

Verifying archive integrity… All good.

Uncompressing NVIDIA CUDA
Samples……………………………………………………………………………………

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.24.1
/usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24
/usr/share/perl/5.24 /usr/local/lib/site_perl
/usr/lib/x86_64-linux-gnu/perl-base) at ./install-sdk-linux.pl line 6.

BEGIN failed–compilation aborted at ./install-sdk-linux.pl line 6.

‘uninstall_cuda_8.0.pl’ ->
‘/usr/local/cuda-8.0/bin/uninstall_cuda_8.0.pl’

Installing the CUDA Samples in /home/dollarakshay …

===========

= Summary =

Driver: Not Selected Toolkit: Installation Failed Samples:
Installation Failed

Logfile is /tmp/cuda_install_6522.log

解决方案

  1. unpack .run file ./cuda*.run –tar mxvf
  2. copy InstallUtils.pm to /usr/lib/x86_64-linux-gnu/perl-base
  3. export $PERL5LIB
Logo

更多推荐