Ask Your Question

Revision history [back]

Error on compiling Nvidia driver on Fedora 27

Good evening, folks! How is going?

Could someone give me a little help?

I'm trying to install the NVIDIA driver via this tutorial: https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/

I've done all the procedures, but when I run the installer and try to compile the modules with DKMS, I get this error:

https://i.imgur.com/5UZ6Cmi.jpg https://i.imgur.com/Sgfm4ng.jpg

I read the log and I know what the installer is recommending. What I want to know is how do I change the CC variable to the GCC version to which the kernel is compiled.

Thanks in advance!