Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nVidia Drivers [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
adobetheosophic
n00b
n00b


Joined: 10 Dec 2004
Posts: 43

PostPosted: Wed Feb 28, 2007 2:27 am    Post subject: nVidia Drivers [SOLVED] Reply with quote

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
View user's profile Send private message
StringCheesian
l33t
l33t


Joined: 21 Oct 2003
Posts: 887

PostPosted: Wed Feb 28, 2007 2:58 am    Post subject: Reply with quote

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
View user's profile Send private message
adobetheosophic
n00b
n00b


Joined: 10 Dec 2004
Posts: 43

PostPosted: Thu Mar 01, 2007 9:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
adobetheosophic
n00b
n00b


Joined: 10 Dec 2004
Posts: 43

PostPosted: Fri Mar 02, 2007 12:18 am    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
Kate Monster
Apprentice
Apprentice


Joined: 13 Jun 2006
Posts: 226
Location: Clarkston, Michigan

PostPosted: Fri Mar 02, 2007 2:42 am    Post subject: Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Mar 02, 2007 3:13 am    Post subject: Reply with quote

Are you using the genkernel methode or the make menuconfig methode ?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Mar 02, 2007 3:18 am    Post subject: Reply with quote

It's /usr/src/linux :wink:
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Mar 02, 2007 3:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum