Zaptel error i

Hi
I AM using debian 3.1 sarge kernal 2.6
I want to install Asterisk.
First I install libpri
But when I install zaptel then i get the error

debian:/usr/src/asterisk/zaptel-1.2.6# make linux26
ZAPTELVERSION=“1.2.6” build_tools/make_version_h > version.h.tmp
if cmp -s version.h.tmp version.h ; then echo; else
mv version.h.tmp version.h ;
fi

rm -f version.h.tmp

You do not appear to have the sources for the 2.6.8-2-386 kernel installed.
make: *** [linux26] Error 1
debian:/usr/src/asterisk/zaptel-1.2.6#

what is the solution? and where to get the kernel -source 2.6.8.2-386
I am not able to find this source.Please give some links.

Please help

Thanks in Advance
.
Rohit

apt-get install kernel-source-2.6.8

Hi,
where to find this source link

kernel-source-2.6.8

how and where to install it ?

thanks in advance
Rohit

you do not need kernel sources to compile zaptel drivers on debian sarge,
but you need the kernel headers for your kernel.

you can install them by just typing

apt-get install kernel-headers-

e.g. on my installation:
check your kernel version with
#:uname -r

2.6.8-3-686-smp

then i did

#:apt-get install kernel-headers-2.6.8-3-686-smp

after that, zaptel did compile…

robert

hi ,
i run command apt-get install kernel-headers-2.6.8-2-386
but it flash the error

debian:~# apt-get install kernel-headers-2.6.8-2-386
Reading Package Lists… Done
Building Dependency Tree… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
kernel-headers-2.6.8-2-386: Depends: kernel-headers-2.6.8-2 but it is not going to be installed
E: Broken packages

then what should be do ?

thanks in advance
rohit

add in /etc/apt/source.list

deb http://mirrors.kernel.org/debian/ stable main non-free contrib

then
#apt-get update
then run
#dselect
and chose desired kernel headrs
or install kernel 2.6.17.4 on Your own.

[quote=“roberth”]you do not need kernel sources to compile zaptel drivers on debian sarge,
but you need the kernel headers for your kernel.

you can install them by just typing

apt-get install kernel-headers-

e.g. on my installation:
check your kernel version with
#:uname -r

2.6.8-3-686-smp

then i did

#:apt-get install kernel-headers-2.6.8-3-686-smp

after that, zaptel did compile…

robert[/quote]

Hi I did the same with version 2.6.8-2-… but i have the same error when installing zaptel “You do not appear to have the sources for the 2.6.8-2-386 kernel installed”, even after installing good kernel header. please help

try an apt-get install kernel-devel

thanks in my researches i found that and it works : ln -s kernel-headers-"your version" linux to put in /usr/src