You are not logged in.

#1 2009-04-27 20:50:58

Iz0r
Member
Registered: 2009-04-27
Posts: 24

make menuconfig

Hey, I´m new to archlinux and I´m having some problem when it comes to configuring the kernel.
When I go to /usr/src/linux-2.6.29-ARCH/ and type make menuconfig, this massage comes up:

*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2

I already have core/ncurses 5.7-2.1 (base) but it still won´t let me configure the kernel.

Thanks for any response.

Offline

#2 2009-04-28 00:35:24

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: make menuconfig

Tried installing ncurses?

Last edited by sand_man (2009-04-28 00:38:07)


neutral

Offline

#3 2009-04-28 00:41:15

hbekel
Member
Registered: 2008-10-04
Posts: 311

Re: make menuconfig

/usr/src/linux-2.6.29-ARCH/ is just the location of the header files required to build third party modules against the currently running kernel. If you want to build your own, either rebuild the kernel26 package using ABS or build it from source.

http://wiki.archlinux.org/index.php/Ker … n_with_ABS
http://wiki.archlinux.org/index.php/Ker … rom_Source

Last edited by hbekel (2009-04-28 00:44:29)

Offline

#4 2009-04-28 14:27:45

Iz0r
Member
Registered: 2009-04-27
Posts: 24

Re: make menuconfig

So I can´t configure the kernel that comes with arch, I need to rebuild everything?

Offline

#5 2009-04-28 15:47:28

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: make menuconfig

Iz0r wrote:

So I can´t configure the kernel that comes with arch, I need to rebuild everything?

The wiki is your friend. wink

Offline

#6 2009-04-28 15:56:43

EVRAMP
Member
From: Czech Republic
Registered: 2008-10-03
Posts: 173
Website

Re: make menuconfig

Hi Iz0r,
compiling kernel (and every other package) in arch is done with makepkg command.
To use makepkg, you must have PKGBUILD script. In this script you specify package name, version, etc.
The best way to compile kernel is to download PKGBUILD (and other needed files) from ABS.
If you have yaourt installed, you can do yaourt -G kernel26, if you want to use abs switch to /var/abs/core/kernel26. Both ways will show you PKGBUILD, config, configx64 and other files needed to build.

To configure kernel with menuconfig open PKGBUILD and find line

#make menuconfig # CLI menu for configuration

and uncomment this line.
You can also use make xconfig (which uses Qt3 menus). Choose only one of them.
Additionally you can change pkgname=kernel26 to your need (e.g. pkgname=kernel26-izor) so you end up with kernel26-izor package, and you can have this kernel alogside with the oficial arch stock kernel (just edit grub menu then).

This is the most simple way (and the best) to compile your own kernel. But why do you need it? Perhaps it would be better to say us the reason for this. Or is it just learning?

P.S. Don't forget that removing modules from kernel you need to boot can make your system unbootable. Therefore i suggest to change pkgname (so the arch kernel will survive on your system unless your new kernel will work).

Offline

#7 2009-04-30 17:28:55

Iz0r
Member
Registered: 2009-04-27
Posts: 24

Re: make menuconfig

Okey, thank you, but can´t I just simply config the kernel that comes with arch? That would be alot easier.
I´ll try to compile my own kernel soon, and I suppose that I´ll need more help. ^^

Thank for the respone guys smile

Offline

#8 2009-04-30 18:19:35

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: make menuconfig

Iz0r wrote:

Okey, thank you, but can´t I just simply config the kernel that comes with arch? That would be alot easier.
I´ll try to compile my own kernel soon, and I suppose that I´ll need more help. ^^

Thank for the respone guys smile

You are misunderstanding the configuration and compilation process. Configuring a kernel is a useless step, unless you subsequently compile it.
smile

Offline

Board footer

Powered by FluxBB