wiki:BuildLinuxPMI

Building

Once you have checked out the source tree and setup the build environment, you probably want to go into the build/<kernelversion> directory, and type 'make menuconfig'. This will bring up the menuconfig tool for configuring your kernel.

Enter the menuconfig, and select the 'HPC options' menu. Hit space to change 'HPC Communication Daemon" into something built in (make it have an asterisk <*> next to it), then do the same for every option under this menu. As you're selecting options, sub-options will appear, make sure to build those in as well.

Exit the 'HPC options' menu, and exit menuconfig. make sure to select to save your configs, when prompted.

Run 'make' to build your kernel.

Common Problems

Ncurses trouble

In file included from scripts/kconfig/lxdialog/checklist.c:24:0:
scripts/kconfig/lxdialog/dialog.h:31:20: fatal error: curses.h: No such file or directory

If you see the above error message, you probably don't have the ability to build ncurses packages installed on your machine. Assuming you are running debian, you need to install the 'libncurses5-dev' package.

Make not installed

bash: make: command not found

You need to install GNU Make. on debian, run the command: 'sudo apt-get install make'

GCC not installed

.../linuxPMI/2.6/kernel/build/linux-2.6.17/scripts/gcc-version.sh: line 11: gcc: command not found

You need GCC installed in order to build kernels. To install it on debian stable, run 'sudo apt-get install gcc'.

2.6.17 problems

If you have problems with 2.6.17, you can check Lenny 2.6.17 HowTo for reference.

Last modified 8 years ago Last modified on Sep 28, 2013, 3:18:43 PM