PDA

View Full Version : Can't build nvidia akmod drivers



pavelthesecond
20th September 2008, 03:53 PM
Just installed the akmod drivers. The installation completed successfully, but when I run

[root@localhost ~]# /usr/sbin/akmods --kernels 2.6.26.3-29.fc9.x86_64
I get a failed result and the log states:

20 Sep 14:44:13 akmods: Building RPM using the command '/usr/bin/akmodsbuild --target x86_64 --kernels 2.6.26.3-29.fc9.x86_64 /usr/src/akmods/nvidia-kmod.latest'
ERROR: Not to be used as root; start as user or 'akmodsbuild' instead.
20 Sep 14:44:13 akmods: Building rpms failed; see /var/cache/akmods/nvidia/173.14.12-2-for-2.6.26.3-29.fc9.x86_64.failed.log for details
I tried running this as root and as user with the same results.

I have the latest 2.6.26 kernel, 8800gt graphics card and x86_64 fc9

Thanks,
Pavel

Firewing1
20th September 2008, 04:30 PM
[root@localhost ~]# /usr/sbin/akmods --kernels 2.6.26.3-29.fc9.x86_64
It looks like you were running as root the first time too! :eek:

Try running it as your regular user, and if that still fails then please move and rename "/var/cache/akmods/nvidia/173.14.12-2-for-2.6.26.3-29.fc9.x86_64.failed.log" to your home and call it "173.14.12-2-for-2.6.26.3-29.fc9.x86_64.failed.txt". This is a trick to allow the log to be uploaded to the forums, since although it is a regular text file the forum doesn't allow the .log extension :p

Then just attach it to your next post so we can have a look at what's going wrong in the build process.
Firewing1

pavelthesecond
20th September 2008, 04:45 PM
still no luck.

Firewing1
20th September 2008, 05:21 PM
The log contains the same output:
20 Sep 16:40:29 akmods: Building RPM using the command '/usr/bin/akmodsbuild --target x86_64 --kernels 2.6.26.3-29.fc9.x86_64 /usr/src/akmods/nvidia-kmod.latest'
ERROR: Not to be used as root; start as user or 'akmodsbuild' instead.
20 Sep 16:40:29 akmods: Building rpms failed; see /var/cache/akmods/nvidia/173.14.12-2-for-2.6.26.3-29.fc9.x86_64.failed.log for details
When you open a new terminal and run "whoami", do you see "root"? If so, you should create a secondary user for security reasons. This is why akmods isn't letting you rebuild the RPM as root.
Firewing1

pavelthesecond
20th September 2008, 05:43 PM
I am currently loged in as root because I use compitz on my normal account and cuz the nvidia drivers aren't building I can't log back into my normal account (as i'm too lazy to disable compitz for the time being).
But when I login to my normal account through ttyl1 and try to build the drivers I get 'Not Writable [Failed]' response. If I put sudo infront of the command then obviously I get the same result as in the root account.

Firewing1
21st September 2008, 04:07 PM
From the GUI you can become your regular user by running:

su - myusername
Can you try running that ^ and then rebuilding the akmod again? That way it should be a bit easier to copy/paste the error than from tty1 ;)
Firewing1

pavelthesecond
21st September 2008, 04:48 PM
Disabled compiz so I'm now logged in my normal account.


[Pavel@localhost ~]$ /usr/sbin/akmods --kernels 2.6.26.3-29.fc9.x86_64
not writable [FAILED]
[Pavel@localhost ~]$ sudo /usr/sbin/akmods --kernels 2.6.26.3-29.fc9.x86_64
Checking kmods exist for 2.6.26.3-29.fc9.x86_64 [WARNING]
Building and installing nvidia-kmod [FAILED]
Building rpms failed; see /var/cache/akmods/nvidia/173.14.12-2-for-2.6.26.3-29.fc9.x86_64.failed.log for details

Hint: Some kmods were ignored or failed to build or install.
You can try to rebuild and install them by by calling
'/usr/sbin/akmods --force' as root.

[Pavel@localhost ~]$

adding force parameter gives the same results.
attached is /var/cache/akmods/nvidia/173.14.12-2-for-2.6.26.3-29.fc9.x86_64.failed.log

Firewing1
21st September 2008, 05:10 PM
Hm, I think because it created the log as root it can't write to the log as your regular user. What does this return:

ls -l /var/cache/akmods/nvidia/173.14.12-2-for-2.6.26.3-29.fc9.x86_64.failed.log;echo '***'
ls -l /var/cache/akmods/;echo '***'
ls -l /var/cache/akmods/nvidia;echo '***'
Firewing1

pavelthesecond
21st September 2008, 05:43 PM
[Pavel@localhost ~]$ ls -l /var/cache/akmods/nvidia/173.14.12-2-for-2.6.26.3-29.fc9.x86_64.failed.log;echo '***'
-rw-r--r-- 2 root root 370 2008-09-21 16:43 /var/cache/akmods/nvidia/173.14.12-2-for-2.6.26.3-29.fc9.x86_64.failed.log
***
[Pavel@localhost ~]$ ls -l /var/cache/akmods/;echo '***'
total 16
-rw-r--r-- 1 root root 10191 2008-09-21 16:43 akmods.log
drwxr-xr-x 2 root root 4096 2008-09-21 16:43 nvidia
***
[Pavel@localhost ~]$ ls -l /var/cache/akmods/nvidia;echo '***'
total 4
-rw-r--r-- 2 root root 370 2008-09-21 16:43 173.14.12-2-for-2.6.26.3-29.fc9.x86_64.failed.log
***
[Pavel@localhost ~]$


If I delete the log and try to build again (as normal user) I still get the same 'not writeable' error

pavelthesecond
2nd October 2008, 10:23 PM
In case anybody else is having the same problem as me I found a workaround by installing the nvidia x11 drivers instead. Those build without any problems and I've got my user account back with compiz fusion and all the eye candy ;)