Latest cuda 7.5 packages should be checked 'perl' installation as the package dependency

I tried to GPGPU passthrough on KVM and tried to use GPGPU on CentOS 6 Cloud image(CentOS-6-x86_64-GenericCloud.qcow2) but I failed to install cuda packages using rpm network installation.I checking /etc/x11/xorg.conf.d/99-nvidia.conf I might correct the ‘ModulePath’ settings below

Section “Files”
ModulePath “/usr/lib64/nvidia/xorg”
ModulePath “/usr/lib64/xorg/modules”
ModulePath “/usr/lib64/xorg/modules/drivers” #Adding the Path
EndSection

And checking the /var/lib/dkms/nvidia/build/make.log I found it need perl to build the cuda package.

/bin/sh: perl: command not found
make[3]: *** [/var/lib/dkms/nvidia/352.79/build/nv-frontend.o] Error 127
make[2]: *** [module/var/lib/dkms/nvidia/352.79/build] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-573.18.1.el6.x86_64’
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [module] Error 1

So I installed perl packages with yum

[root@centos build]# yum install perl

And compilation was failed though ‘yum install cuda’ had been completed so I reboot the system to recognized it.

[root@gpu-centos build]# yum install cuda
Loaded plugins: fastestmirror, presto
Setting up Install Process
Loading mirror speeds from cached hostfile

  • base: ftp.iij.ad.jp
  • epel: epel.mirror.net.in
  • extras: centos.usonyx.net
  • updates: ftp.iij.ad.jp
    Package cuda-7.5-18.x86_64 already installed and latest version
    Nothing to do

Perhaps cuda rpm package need ‘Requires:perl’ in the spec file…

-masafumi

Seems that you need verify your system has the correct kernel headers and development packages installed.

See more at:
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#redhat-installation

===
i.e. all required packages could be installed by

yum groupinstall “Development Tools”
yum install kernel-devel kernel-headers dkms

Hi kkang,

Seems that you need verify your system has the correct kernel headers and development packages installed.

Well,I have checked ‘previous check’…so I have done

yum install kernel-devel kernel-headers dkms

but well,groupinstall might be better solution for that.

yum groupinstall “Development Tools”

Anyway thanks your advice.

-Masafumi

I also have checked .deb package,when I use Ubuntu Cloud image on it,I need those packages below.

linux-source build-essential perl perl-base perl-modules

and need to add nouveau to the modprobe blacklist.

perhaps those should be set on ‘control’ file.

-Masafumi