Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error kernel source directory "/usr/src/linux" was not found
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
boou32
n00b
n00b


Joined: 15 Mar 2006
Posts: 38

PostPosted: Wed Jul 18, 2007 2:45 am    Post subject: Error kernel source directory "/usr/src/linux" was Reply with quote

I performed #genkernel all the error message was ERROR KERNEL SOURCE DIRECTORY "/USR/SRC/LINUX" WAS NOT FOUND

Running with option all

ERROR KERNEL SOURCE DIRECTORY "/USR/SRC/LINUX" WAS NOT FOUND



END LOG
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Wed Jul 18, 2007 2:47 am    Post subject: Reply with quote

Hi.

Make sure you installed a kernel package and that /usr/src/linux points to a kernel tree.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
boou32
n00b
n00b


Joined: 15 Mar 2006
Posts: 38

PostPosted: Wed Jul 18, 2007 2:59 am    Post subject: Reply with quote

Hi I just did a # ls -l /usr/src/linux the return message was No such file or directory


HERE are my steps before the Error
1. # emerge genkernel
2. # zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config2.6
3. #genkernel all
Back to top
View user's profile Send private message
Mantaar
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 219

PostPosted: Wed Jul 18, 2007 4:58 am    Post subject: Reply with quote

That means you probably did not enable the symlink USE-flag when you were emerging gentoo-sources. The most fool proof way to fix this is the following: add symlink to your USE-flags in /etc/make.conf and remerge gentoo-sources. However I would recommend just to look into /usr/src and determine the latest version of gentoo sources and symlink it there. Most likely you'll end up doing this:

Code:

cd /usr/src
ln -s gentoo-sources-2.6.21-r3 linux


Then rerun genkernel.
_________________
Error compiling committee.c: too many arguments to function.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Mon Jul 23, 2007 9:57 pm    Post subject: Reply with quote

boou32 wrote:
Hi I just did a # ls -l /usr/src/linux the return message was No such file or directory
Code:
1.  # emerge genkernel 
2. # zcat /proc/config.gz  >  /usr/share/genkernel/x86/kernel-config2.6
3. #genkernel all

You didn't emerge any kernel tree. You need choose a kernel package. For gentoo-sources do emerge -av gentoo-sources
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
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