View previous topic :: View next topic |
Author |
Message |
adobetheosophic n00b
Joined: 10 Dec 2004 Posts: 43
|
Posted: Wed Feb 28, 2007 2:27 am Post subject: nVidia Drivers [SOLVED] |
|
|
I tried to install the nvidia drivers with "emerge nvidia-drivers". The first package installed fine, but the second one comes up with an error message:
Code: |
localhost ~ # emerge nvidia-drivers
Calculating dependencies... done!
>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-1.0.8776 to /
* NVIDIA-Linux-x86_64-1.0-8776-pkg2.run MD5 ;-) ... [ ok ] * NVIDIA-Linux-x86_64-1.0-8776-pkg2.run RMD160 ;-) ... [ ok ] * NVIDIA-Linux-x86_64-1.0-8776-pkg2.run SHA1 ;-) ... [ ok ] * NVIDIA-Linux-x86_64-1.0-8776-pkg2.run SHA256 ;-) ... [ ok ] * NVIDIA-Linux-x86_64-1.0-8776-pkg2.run size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking NVIDIA-Linux-x86_64-1.0-8776-pkg2.run ;-) ... [ ok ] * Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so that
* it points to the necessary object directory so that it might find .config.
!!! ERROR: x11-drivers/nvidia-drivers-1.0.8776 failed.
Call stack:
ebuild.sh, line 1630: Called dyn_setup
ebuild.sh, line 702: Called qa_call 'pkg_setup'
ebuild.sh, line 38: Called pkg_setup
nvidia-drivers-1.0.8776.ebuild, line 112: Called linux-mod_pkg_setup
linux-mod.eclass, line 458: Called linux-info_pkg_setup
linux-info.eclass, line 554: Called die
!!! 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-1.0.8776/temp/build.log'.
|
What should I do?
Thanks.
Last edited by adobetheosophic on Fri Mar 02, 2007 5:41 pm; edited 1 time in total |
|
Back to top |
|
|
StringCheesian l33t
Joined: 21 Oct 2003 Posts: 887
|
Posted: Wed Feb 28, 2007 2:58 am Post subject: |
|
|
Usually the .config file it's looking for is generated by the "make menuconfig" step in installing your kernel.
What does "ls /usr/src/linux* /usr/src/linux*/.config -ld" output? |
|
Back to top |
|
|
adobetheosophic n00b
Joined: 10 Dec 2004 Posts: 43
|
Posted: Thu Mar 01, 2007 9:32 pm Post subject: |
|
|
Code: |
localhost ~ # ls /usr/src/linux* /usr/src/linux*/.config -ld
ls: cannot access /usr/src/linux*/.config: No such file or directory
lrwxrwxrwx 1 root root 22 Feb 27 18:51 /usr/src/linux -> linux-2.6.19-gentoo-r5
drwxr-xr-x 19 root root 4096 Feb 27 18:51 /usr/src/linux-2.6.19-gentoo-r5
|
is the output of " ls /usr/src/linux* /usr/src/linux*/.config -ld" . |
|
Back to top |
|
|
adobetheosophic n00b
Joined: 10 Dec 2004 Posts: 43
|
Posted: Fri Mar 02, 2007 12:18 am Post subject: |
|
|
bump |
|
Back to top |
|
|
Kate Monster Apprentice
Joined: 13 Jun 2006 Posts: 226 Location: Clarkston, Michigan
|
Posted: Fri Mar 02, 2007 2:42 am Post subject: |
|
|
You should be able to generate a new .config by doing:
Code: | zcat /proc/config.gz > /usr/linux/.config
cd /usr/src/linux
make oldconfig |
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Mar 02, 2007 3:13 am Post subject: |
|
|
Are you using the genkernel methode or the make menuconfig methode ? |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Fri Mar 02, 2007 3:18 am Post subject: |
|
|
It's /usr/src/linux |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Mar 02, 2007 3:35 am Post subject: |
|
|
Xaero wrote: | You should be able to generate a new .config by doing:
Code: | zcat /proc/config.gz > /usr/linux/.config
cd /usr/src/linux
make oldconfig |
|
make && make modules_install |
|
Back to top |
|
|
|