Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to find kernel sources at /usr/src/linux
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Wed Apr 06, 2005 4:42 am    Post subject: Unable to find kernel sources at /usr/src/linux Reply with quote

I have a problem with kernel. Look at this:
root@eleanorunicorne eleanor # emerge nvidia-glx
Calculating dependencies ...done!
>>> emerge (1 of 2) media-video/nvidia-kernel-1.0.6629-r1 to /
x86
>>> Downloading http://gentoo.osuosl.org/distfiles/NVIDIA-Linux-x86-1.0-6629-pkg1.run
--06:36:05-- http://gentoo.osuosl.org/distfiles/NVIDIA-Linux-x86-1.0-6629-pkg1.run
=> `/usr/portage/distfiles/NVIDIA-Linux-x86-1.0-6629-pkg1.run'
Resolving gentoo.osuosl.org... 140.211.166.134
Connecting to gentoo.osuosl.org[140.211.166.134]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8,725,221 [text/plain]

100%[====================================>] 8,725,221 36.35K/s ETA 00:00

06:38:40 (54.99 KB/s) - `/usr/portage/distfiles/NVIDIA-Linux-x86-1.0-6629-pkg1.run' saved [8725221/8725221]

>>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-6629-pkg1.run
x86
* Determining the location of the kernel source code
* Unable to find kernel sources at /usr/src/linux
* This package requires Linux sources.
* Please make sure that /usr/src/linux points at your running kernel,
* (or the kernel you wish to build against).
* Alternatively, set the KERNEL_DIR environment variable to the kernel sources location

!!! ERROR: media-video/nvidia-kernel-1.0.6629-r1 failed.
!!! Function linux-info_pkg_setup, Line 518, Exitcode 1
!!! Unable to calculate Linux Kernel version
!!! If you need support, post the topmost build error, NOT this status message.



I recently deleated all what was in /usr/src/* . And I compiled a new kernel to /usr/src/kernel-2.6.10. I think I must to create a link to /usr/src/linux, but I don't know how, do anybody know?
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 518
Location: Wales, UK

PostPosted: Wed Apr 06, 2005 4:56 am    Post subject: Reply with quote

use:

ln -s /usr/src/kernel-2.6.10 /usr/src/linux

Should work. I am writing this on my wife's non linux computer, as mine is in the throws of a emerge --emptytree and has been for a few days now so I can't confirm the above directly.

Rgds.,
Paul
Back to top
View user's profile Send private message
John-Boy
Guru
Guru


Joined: 23 Jun 2004
Posts: 446
Location: Desperately seeking moksha in all the wrong places

PostPosted: Wed Apr 06, 2005 4:58 am    Post subject: Reply with quote

ln -s /usr/src/(whatever sources you are using) linux

then check with ls -l
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Wed Apr 06, 2005 4:59 am    Post subject: Reply with quote

I've already fixed that, but thanks anyway!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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