LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-13-2006, 03:00 PM   #1
habreu
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Rep: Reputation: 0
Kernel source code, Bison and some development libraries and headers


Hi. I've just installed Debian Etch and now I'm going to compile Zaptel and install Asterisk. I need the full kernel source code. When I type uname -a, it says the version is debian 2.6.17-2-686.

How do I get the kernel source code? Is it an apt-get command or just a tarball to download and install? I will also need Bison; and zlib, libedit and openssl development libraries and headers. Where can I get those or check if I already have them? I was used to check and install those things with the SuSE Yast graphic tool, but I'm new to Debian and don't know how it works here.

Thank you in advance.

Regards,

Hector.
 
Old 12-13-2006, 03:21 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
You can install the source with aptitude install linux-source-2.6 (I believe). Use apt-cache search string (change string to something you're looking for, obviously) to find what you're looking for. Some libraries you might have to use apt-file search instead since they might be buried in other packages. Or use the web search (just be sure to search either "any" or "testing", not the default "stable").
 
Old 12-13-2006, 05:06 PM   #3
habreu
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Original Poster
Rep: Reputation: 0
aptitude install

I tried

debian:/# aptitude install kernel-source-2.6.17.2-686

and it displays the following message (among other things)...

Couldn't find any package whose name or description matched "kernel-source-2.6.17.2-686"

Should I try kernel-source-2.6.17 instead of kernel-source-2.6.17.2-686 ?
 
Old 12-13-2006, 05:22 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
First, use "linux-source" instead.

Second, try apt-cache search linux-source to see what source packages are available (it appears only 2.6.18 is available in testing/unstable).
 
Old 12-13-2006, 05:52 PM   #5
habreu
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Will 2.6.18 match my 2.6.17-2-686 ?

The command:

debian:/# apt-cache search linux-source

lists the following:

linux-patch-debian-2.6.18 - Debian patches to version 2.6.18 of the Linux kernel
linux-source-2.6.18 - Linux kernel source for version 2.6.18 with Debian patches
linux-tree-2.6.18 - Linux kernel source tree for building Debian kernel images


As I said in the beginning, when I enter uname -a it displays debian 2.6.17-2-686

Will 2.6.18 match my 2.6.17-2-686 ? I think I've read somewhere that those numbers should be the same (kernel source and kernel version). Just want to make sure I don't screw up anything, sorry.

Thank you in advance.
 
Old 12-13-2006, 08:38 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
It would appear that debian no longer offers the 2.6.17 kernel source in the repositories. Try apt-cache search linux-image | grep 2.6.18.

If you find a 2.6.18 kernel in the debian repositories, I'd be tempted to install it and then compile against the sources in the debian repositories.

If you can't find a 2.6.18 kernel image to install, you should be able to download the 2.6.17 source code from kernel.org. Then what you'll want to do is copy the /boot/config-2.6.17 file to /usr/src/linux/.config, then run make oldconfig (from inside the /usr/src/linux directory) to configure the source as you would if you were about to compile it.
 
Old 12-14-2006, 03:16 PM   #7
habreu
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Oops! I installed the linux kernel 2.6.18 source and also the headers before reading this message. It looks like it's working fine, but if I see any problem I'll do what you suggest and give this forum a feedback.

Thank you very much!

Hector.
 
  


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
kernel source headers!! vishamr2000 Linux - General 16 04-13-2006 05:26 AM
LXer: ReactOS suspends development for source code review LXer Syndicated Linux News 0 02-01-2006 10:01 PM
need kernel-source/headers Foress_89 Linux - Hardware 2 10-04-2005 06:22 AM
Apache source code hack - Server response headers 2.0.49 fireman949 Linux - Software 2 05-24-2004 10:31 AM
Kernel Source and Headers Seventh_Warrior Linux - Software 8 04-10-2004 02:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:40 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