LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   [lguest] Error 1 during compiling kernel (https://www.linuxquestions.org/questions/linux-kernel-70/%5Blguest%5D-error-1-during-compiling-kernel-773419/)

dante_des 12-04-2009 06:02 AM

[lguest] Error 1 during compiling kernel
 
Hi,
I'm trying to compile my kernel (2.6.26 on debian lenny). I followed the standard procedure: download linux-source (by apt-get), create a simbolic link "linux" to the directory, use the config file in /boot, and do the following command:

make-kpkg --append-to-version -mykern --revision=1 kernel_image:


After compiling for long time, I get the following error:

Code:

make[1]: Leaving directory `/usr/src/linux-source-2.6.26'
/usr/bin/make EXTRAVERSION=-mykern ARCH=i386 \
-C Documentation/lguest
make[1]: Entering directory `/usr/src/linux-source-2.6.26/Documentation/lguest'
cc -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include lguest.c -lz -o lguest
lguest.c:34:18: error: zlib.h: No such file or directory
make[1]: *** [lguest] Error 1
make[1]: Leaving directory `/usr/src/linux-source-2.6.26/Documentation/lguest'
make: *** [debian/stamp/build/kernel] Error 2

I can't understand why, I'm frustrated!

knudfl 12-04-2009 07:58 AM

Quote:

zlib.h: No such file or directory
# apt-get install zlib1g-dev

.. will install the missing file(s).


All times are GMT -5. The time now is 07:16 PM.