Help-zaptel make fail, no such file or directory

hello, I am having a problem with making the zaptel the rest of the asterisk install seems to have gone smoothly but the zaptel keeps throwing this error at me: [root@safeserve zaptel]# ln -s /lib/modules/`uname -r`/build /usr/src/linux ln: `/usr/src/linux': File exists [root@safeserve zaptel]# make clean; make; make install rm -f torisatool makefw tor2fw.h radfw.h rm -f ztcfg torisatool makefw ztmonitor ztspeed zttool zttest fxotune rm -f *.o ztcfg tzdriver sethdlc sethdlc-new rm -f zonedata.lo tonezone.lo libtonezone.so *.lo rm -f *.ko *.mod.c .*o.cmd rm -rf .tmp_versions rm -f gendigits tones.h rm -f libtonezone* rm -f tor2ee rm -f fxotune rm -f core rm -f ztcfg-shared fxstest cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o gendigits.o gendigits.c cc -o gendigits gendigits.o -lm ./gendigits cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" makefw.c -o makefw ./makefw tormenta2.rbt tor2fw > tor2fw.h Loaded 69900 bytes from file ./makefw pciradio.rbt radfw > radfw.h Loaded 42096 bytes from file cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o ztcfg.o ztcfg.c cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o zonedata.lo zonedata.c cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o tonezone.lo tonezone.c ar rcs libtonezone.a zonedata.lo tonezone.lo cc -o ztcfg ztcfg.o libtonezone.a -lm cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o torisatool.o torisatool.c cc -o torisatool torisatool.o cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o ztmonitor.o ztmonitor.c cc -o ztmonitor ztmonitor.o cc -o ztspeed.o -c ztspeed.c cc -o ztspeed ztspeed.o cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o zttool.o zttool.c cc -o zttool zttool.o -lnewt cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" zttest.c -o zttest cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o fxotune.o fxotune.c cc -o fxotune fxotune.o -lm make -C SUBDIRS=/usr/src/zaptel modules make: *** SUBDIRS=/usr/src/zaptel: No such file or directory. Stop. make: *** [linux26] Error 2 make -C SUBDIRS=/usr/src/zaptel modules make: *** SUBDIRS=/usr/src/zaptel: No such file or directory. Stop. make: *** [linux26] Error 2

I am not sure if this is an obvious error as i am new to linux, any pointers would be great
thanks in advance

Make sure that your kernel source is installed, you need this to build the driver modules. If you didn’t compile the kernel from source, then you need to install your distrobution’s kernel source files. How you do that depends on the specific distrobution, which you didn’t note in your first post.

Also note that the asterisk website lists the following packages as required to compile and install Asterisk and the Zaptel drivers.

ncurses, and associated -devel

openssl, and associated -devel

zlib, and associated -devel

bison, and associated -devel

Make sure you have those installed as well. ( -devel means that you have your distrobutions development package installed as well. This usually includes the source code & librarys of that package. )

I’ve had similar problems.

Does anyone know how I get the debian source?

thankyou for your replies, i beleive i have the required packages and the kernel source in place.

I am trying to get it working on a clarkconnect machine, version 3.1.

it has a CentOS 4 core 2.6.9-19 with matching source.

what i don`t understand is why it fails here

make -C SUBDIRS=/usr/src/zaptel modules
make: *** SUBDIRS=/usr/src/zaptel: No such file or directory. Stop.

when i am in the /usr/src/zaptel directory to start the make process

is it a permission problem ?

any pointers would be a great help

many thanks