Gentoo -> nvidia-drivers

Hallo an alle!

Ich versuche unter meinem Gentoo-System, das bisher rein als Server verwendet wurde ein X-Server zu installieren. Dazu will er gerne die nvidia-drivers haben.

Ein „emerge nvidia-drivers“ bringt aber Fehlermeldungen, die mir unklar sind:

\>\>\> Emerging (1 of 1) x11-drivers/nvidia-drivers-180.22
 \* NVIDIA-Linux-x86-180.22-pkg0.run RMD160 SHA1 SHA256 size :wink: ... [ok]
 \* checking ebuild checksums :wink: ... [ok]
 \* checking auxfile checksums :wink: ... [ok]
 \* checking miscfile checksums :wink: ... [ok]
 \* Determining the location of the kernel source code
 \* Found kernel source directory:
 \* /usr/src/linux
 \* Could not find a Makefile in the kernel source directory.
 \* Please ensure that /usr/src/linux points to a complete set of Linux sources
 \* 
 \* ERROR: x11-drivers/nvidia-drivers-180.22 failed.
 \* Call stack:
 \* ebuild.sh, line 49: Called pkg\_setup
 \* nvidia-drivers-180.22.ebuild, line 146: Called linux-mod\_pkg\_setup
 \* linux-mod.eclass, line 578: Called linux-info\_pkg\_setup
 \* linux-info.eclass, line 696: Called die
 \* The specific snippet of code:
 \* get\_version || die "Unable to calculate Linux Kernel version"
 \* The die message:
 \* Unable to calculate Linux Kernel version
 \* 
 \* If you need support, post the topmost build error, and the call stack if relevant.
 \* A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.22/temp/build.log'.
 \* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.22/temp/die.env'.
 \* 

\>\>\> Failed to emerge x11-drivers/nvidia-drivers-180.22, Log file:

\>\>\> '/var/tmp/portage/x11-drivers/nvidia-drivers-180.22/temp/build.log'

 \* Messages for package x11-drivers/nvidia-drivers-180.22:

 \* Could not find a Makefile in the kernel source directory.
 \* Please ensure that /usr/src/linux points to a complete set of Linux sources
 \* 
 \* ERROR: x11-drivers/nvidia-drivers-180.22 failed.
 \* Call stack:
 \* ebuild.sh, line 49: Called pkg\_setup
 \* nvidia-drivers-180.22.ebuild, line 146: Called linux-mod\_pkg\_setup
 \* linux-mod.eclass, line 578: Called linux-info\_pkg\_setup
 \* linux-info.eclass, line 696: Called die
 \* The specific snippet of code:
 \* get\_version || die "Unable to calculate Linux Kernel version"
 \* The die message:
 \* Unable to calculate Linux Kernel version
 \* 
 \* If you need support, post the topmost build error, and the call stack if relevant.
 \* A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.22/temp/build.log'.
 \* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.22/temp/die.env'.
 \*

Das Verzeichnis /usr/src/ sieht so aus:

phantom src # ls -al
total 16
drwxr-xr-x 4 root root 4096 Jan 29 15:48 .
drwxr-xr-x 15 root root 4096 Jan 29 15:28 ..
-rw-r--r-- 1 root root 0 Jun 11 2008 .keep
lrwxrwxrwx 1 root root 23 Jan 29 15:48 linux -\> linux-2.6.26-gentoo-r3/
drwxr-xr-x 19 root root 4096 Jan 9 17:57 linux-2.6.26-gentoo-r3
drwxr-xr-x 23 root root 4096 Jan 29 15:47 linux-2.6.27-gentoo-r8

Hat jemand eine Idee wie ich das Problem lösen könnte?

Danke + Gruß PHANTOM

Dein Symlink zeigt nicht auf den aktuellen Kernel. Ich weiß aber nicht, ob es daran liegt.
Hier:
http://forums.gentoo.org/viewtopic-t-731090-highligh…
Wurde jemandem geraten die Kernel Sourcen neu zu ermergen.

Danke für deine Antwort!

Habe es geschafft die nvidia-drivers zu installieren. Frage bitte nicht wie. Habe mehrere Pakete nachinstalliert, ich glaube es war was mit libtool und glx und dann ging es. Nun habe ich aber ein anderes Problem:

phantom src # X -config /root/xorg.conf.new

X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: UNKNOWN 
Current Operating System: Linux openbts 2.6.26-gentoo-r3 #1 SMP Wed Dec 10 16:14:46 CET 2008 i686
Build Date: 29 January 2009
 Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (\*\*) from config file, (==) default setting,
 (++) from command line, (!!) notice, (II) informational,
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 29 17:20:11 2009
(++) Using config file: "/root/xorg.conf.new"
(II) Module already built-in
FATAL: Module nvidia not found.
(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(0): \*\*\* Aborting \*\*\*
(EE) Screen(s) found, but none have a usable configuration.

Diesen Befehl soll ich laut http://www.gentoo.de/doc/de/xorg-config.xml ausführen, warum schlägt dieser aber fehl?

Gruß PHANTOM

Es gibt ein nvidia Kernel modul und eine Option dafür direkt im Kernel. Die sind nicht kompatibel. Checke Deine Kerneloptionen.