LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2009, 03:09 AM   #1
JonesD1
LQ Newbie
 
Registered: May 2009
Posts: 15

Rep: Reputation: 0
Debian: compilation Error - missing ...linux/Documentation/lguest directory


Hardware: Pentium III, 800Mz, 512 MB RAM.
After disk format and Debian Lenny installation, the Linux worked well.

Now I am trying to download and compile the latest Linux kernel 2.6.30.3 and have lots of obstacles.

My last try was to following http://howtoforge.com/kernel_compilation_debian_etch as recommended to me in this forum.

I followed all steps except the downloading of the kernel which resides in my disk already. But I extracted it again (without deleting the existing source files, and it showed nothing done, as expected by me).

I did not Apply Patches To The Kernel Sources (Optional), because I do not know of any that I need.

after configuring phase, I made the following 2 commands:

Code:
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-raz kernel_image kernel_headers
After some hours of compilation I received the following output:

Code:
  H16TOFW firmware/vicam/firmware.fw
  IHEX    firmware/cpia2/stv0672_vp4.bin
make[1]: Leaving directory `/usr/src/linux-2.6.30.3'
/usr/bin/make  EXTRAVERSION=.3-raz  ARCH=i386 \
			     -C Documentation/lguest
make[1]: Entering directory `/usr/src/linux-2.6.30.3/Documentation/lguest'
cc -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE    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-2.6.30.3/Documentation/lguest'
make: *** [debian/stamp/build/kernel] Error 2
LinuxMachine:/usr/src/linux#
The following directory is really does not exist:
/usr/src/linux-2.6.30.3/Documentation/lguest

Can anybody help me please?
 
Old 08-17-2009, 04:45 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
You are missing the zlib.h header. You will need to get the package 'zlib1g-dev'. (I don't know the reason why the dependency is missing from the kernel packages).
 
Old 08-17-2009, 04:47 AM   #3
JonesD1
LQ Newbie
 
Registered: May 2009
Posts: 15

Original Poster
Rep: Reputation: 0
How can I test my system to know if the 'zlib1g-dev' is not already installed?

And must I clean all the compilation output and start from scratch or I can run the compilation command again?

Last edited by JonesD1; 08-17-2009 at 04:53 AM.
 
Old 08-17-2009, 04:53 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Code:
dpkg --get-selections
will give you a list of installed packages.
Code:
dpkg --get-selections | grep zlib
You can run the compile again, but it will rebuild pretty much everything anyway.

Last edited by neonsignal; 08-17-2009 at 04:55 AM.
 
Old 08-17-2009, 06:50 AM   #5
JonesD1
LQ Newbie
 
Registered: May 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you neonsignal, the compilation finished OK.
and The package 'zlib1g-dev' was indeed missing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lguest ERROR when compiling kernel for first time Tolem Linux - Kernel 1 05-27-2009 02:30 AM
LXer: Linux: lguest Documentation LXer Syndicated Linux News 0 08-06-2007 01:48 AM
Stubs-32.h file missing error during compilation on Windows using Colinux + FC4 rkaur Linux - Software 0 03-21-2007 06:11 AM
LXer: Linux down time may be due to missing documentation or changing ... LXer Syndicated Linux News 2 06-13-2006 02:01 PM
Kernel Compilation Documentation rm6990 Linux - Software 1 09-08-2004 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration