Install T400 graphics driver on Rocky Linux 8

Hi All,

I’m unable to install the Nvidia T400 graphics driver on fresh installed Rocky linux 8. We have uninstalled the existing Nouveau driver. Stopped and disabled the existing gdm as well, but finding it difficult to fix and resolve. Please help me guys.

In file included from /tmp/selfgz15132/NVIDIA-Linux-x86_64-535.98/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz15132/NVIDIA-Linux-x86_64-535.98/kernel/nvidia-uvm/uvm_migrate.c:24: /tmp/selfgz15132/NVIDIA-Linux-x86_64-535.98/kernel/nvidia-uvm/uvm_linux.h:150:32: error: expected identifier before numeric constant define MPOL_PREFERRED_MANY 5 ^ /usr/src/kernels/4.18.0-553.22.1.el8_10.x86_64/include/uapi/linux/mempolicy.h:25:2: note: in expansion of macro ‘MPOL_PREFERRED_MANY’ MPOL_PREFERRED_MANY, ^~~~~~~~~~~~~~~~~~~ make[3]: *** [/usr/src/kernels/4.18.0-553.22.1.el8_10.x86_64/scripts/Makefile.build:317: /tmp/selfgz15132/NVIDIA-Linux-x86_64-535.98/kernel/nvidia-uvm/uvm_migrate.o] Error 1 CC [M] /tmp/selfgz15132/NVIDIA-Linux-x86_64-535.98/kernel/nvidia-uvm/uvm_populate_pageable.o CC [M] /tmp/selfgz15132/NVIDIA-Linux-x86_64-535.98/kernel/nvidia-uvm/uvm_migrate_pageable.o CC [M] /tmp/selfgz15132/NVIDIA-Linux-x86_64-535.98/kernel/nvidia-uvm/uvm_map_external.o In file included from /tmp/selfgz15132/NVIDIA-Linux-x86_64-535.98/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz15132/NVIDIA-Linux-x86_64-535.98/kernel/nvidia-uvm/uvm_migrate_pageable.c:24: /tmp/selfgz15132/NVIDIA-Linux-x86_64-535.98/kernel/nvidia-uvm/uvm_linux.h:150:32: error: expected identifier before numeric constant define MPOL_PREFERRED_MANY 5 ^ /usr/src/kernels/4.18.0-553.22.1.el8_10.x86_64/include/uapi/linux/mempolicy.h:25:2: note: in expansion of macro ‘MPOL_PREFERRED_MANY’ MPOL_PREFERRED_MANY,

Why do you use such an old kernel and driver? Latest 535 version is 535.183.01.
But I suggest that you install 550.120 which is the latest production driver. But maybe that won’t work with Linux 4.18 since that’s apparently what Rocky Linux 8 uses.