Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Make Menuconfig and /usr/src/linux/
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
Apex_Axel
n00b
n00b


Joined: 14 Jun 2004
Posts: 6

PostPosted: Mon Jun 14, 2004 9:40 pm    Post subject: Make Menuconfig and /usr/src/linux/ Reply with quote

Ok well i was recompiling my kernel to include my soundcard drivers, following a tutorial i found somewhere... cant find it now :/ but anyway i typed the following commands as per the tutorial:

Code:

cd /usr/src
rm linux
ln -s Gentoo-2.6.5-r1-06-14-2004 linux


Well everything worked great to recompile, and sound is working, but now i would like to check my kernel config, so i tried to go to /usr/src/linux again to do make menuconfig, which returned the following:

bash: cd: /usr/src/linux: No such file or directory

but when i typed ls in /usr/src i get:

linux linux-2.6.5-gentoo-r1 xorg-x11-6.7.0

So my question is, what did i do wrong, how can i fix it, and what should i do differently next time i compile a kernel?
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Mon Jun 14, 2004 9:43 pm    Post subject: Reply with quote

That ln line should be
Code:
ln -s linux-2.6.5-gentoo linux
As for the errors you're getting, it's quite possible to create a symlink to a non-existant file, which you did, but when you try to read it you'll get not found errors, because the target doesn't exist.
Back to top
View user's profile Send private message
grimm26
Guru
Guru


Joined: 23 May 2004
Posts: 313
Location: Chicagoland, IL

PostPosted: Mon Jun 14, 2004 9:47 pm    Post subject: Reply with quote

The real question is what does ls -l /usr/src show?
_________________
"Blessed is he who finds happiness in his own foolishness, for he will always be happy".
Back to top
View user's profile Send private message
Apex_Axel
n00b
n00b


Joined: 14 Jun 2004
Posts: 6

PostPosted: Mon Jun 14, 2004 10:08 pm    Post subject: Reply with quote

Here is what ls -l /usr/src shows, so basically i created a symlink to the wrong file? Hmf didnt even know what a symlink was until i looked it up just now...

ls -l /usr/src
total 8
lrwxrwxrwx 1 root root 26 Jun 14 16:04 linux -> Gentoo-2.6.5-r1-06-14-2004
drwxr-xr-x 19 root root 4096 Jun 14 15:43 linux-2.6.5-gentoo-r1
drwxr-xr-x 3 root root 4096 Jun 13 17:19 xorg-x11-6.7.0

Aha well at least i know what the ln command does, managed to fix it by removing the linux link, then making a new one with the right path this time :P Thanks for the help!
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