View previous topic :: View next topic |
Author |
Message |
twisted n00b

Joined: 13 Aug 2006 Posts: 4
|
Posted: Sun Aug 13, 2006 12:14 pm Post subject: make menuconfig > Makefile: No such file or directory |
|
|
Hi,
Some time ago, I had a problem with my harddisk. After running e2fsck, the content of my /usr partition was moved to the lost+found directory. It took me a while to put everything back in place. Everything runs fine since then, I only have one problem. When I try to make changes to my kernel, I get the following error message:
Code: | localhost linux # pwd
/usr/src/linux
localhost linux # make clean
CLEAN arch/i386/boot/compressed
CLEAN arch/i386/boot
CLEAN /usr/src/linux-2.6.16-gentoo-r7
CLEAN arch/i386/kernel
CLEAN drivers/char
CLEAN drivers/ieee1394
CLEAN init
scripts/Makefile.clean:17: /usr/src/linux-2.6.16-gentoo-r7/ipc/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.16-gentoo-r7/ipc/Makefile'. Stop.
make: *** [_clean_ipc] Error 2
localhost linux # make menuconfig
scripts/Makefile.build:15: /usr/src/linux-2.6.16-gentoo-r7/scripts/basic/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.16-gentoo-r7/scripts/basic/Makefile'. Stop.
make: *** [scripts_basic] Error 2
|
I've searched for a solution but couldn't find it.. Can anybody help me please?
Thanks alot !  |
|
Back to top |
|
 |
stahlsau Guru


Joined: 09 Jan 2004 Posts: 584 Location: WildWestwoods
|
Posted: Sun Aug 13, 2006 12:22 pm Post subject: |
|
|
hi,
maybe a simple re-emerge of your current kernel will fix this? Seems like a file is missing. |
|
Back to top |
|
 |
twisted n00b

Joined: 13 Aug 2006 Posts: 4
|
Posted: Sun Aug 13, 2006 1:08 pm Post subject: |
|
|
stahlsau wrote: | hi,
maybe a simple re-emerge of your current kernel will fix this? Seems like a file is missing. | Maybe a stupid question, but how can I do that? I looked in the man page of the emerge command an the online gentoo docs but couldn't find it.. |
|
Back to top |
|
 |
gimpel Advocate


Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Sun Aug 13, 2006 1:20 pm Post subject: |
|
|
Code: | USE="symlink" emerge -av gentoo-sources |
this will just unpack the latest kernel source and create the symlink. to get the same version again use =gentoo-sources-2.6.16-r7, but i guess that will fail as it's not in portage anymore, latest 2.6.16 is -r13 _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
Back to top |
|
 |
twisted n00b

Joined: 13 Aug 2006 Posts: 4
|
Posted: Sun Aug 13, 2006 1:28 pm Post subject: |
|
|
gimpel wrote: | Code: | USE="symlink" emerge -av gentoo-sources |
this will just unpack the latest kernel source and create the symlink. to get the same version again use =gentoo-sources-2.6.16-r7, but i guess that will fail as it's not in portage anymore, latest 2.6.16 is -r13 | Okay thanks alot !  |
|
Back to top |
|
 |
|