Ok, I already had kernel-devel, kernel-headers, and gcc. I rebooted and nothing changed. I did a little reading at this site
and found this:
Normally, your akmods are automatically rebuilt into kmods when you 1) install a NEW kernel for which no kmod yet exists, or 2) reboot into an old kernel for which no kmod yet exists, or 3) reboot and there's an updated akmod version to be rebuilt for the same (or newer) kernel version.
You can either reboot now to have the kmod rebuilt by the "akmods" service scripts, or, you can force it to rebuild now:
[root@f9-64vm1 ~]# service akmods restart
Checking kmods exist for 18.104.22.168-76.fc9.x86_64 [WARNING]
Building and installing nvidia-kmod [ OK ]
The "[WARNING]" is to inform you that the kmod doesn't exist, so it's being rebuilt and installed. It should take less than a minute to build on decent hardware. If it just says "[OK]" then you either already have the livna kmod installed, or have already rebuilt the akmod previously. If it says "[FAILED]", then something went horribly wrong, but the first thing to check is that you have also installed "kernel-devel".
I tried running service akmods restart and it failed:
[root@rockinlinux rokit]# service akmods restart
Checking kmods exist for 22.214.171.124-167.fc11.x86_64 [ OK ]
Files needed for building modules against kernel
126.96.36.199-167.fc11.x86_64 could not be found as the following
directories are missing:
I don't know why it's looking for the above kernel when my kernel is 188.8.131.52-43.fc11.x86_64. Any ideas?