Prepare the Debian kernel-source, modversions.h 

I'm preparing my Debian kernel-source so that I can compile my pctel modem driver.

I've done the kernel-source-preparing before in RedHat, basically:

make mrproper
# get the configuration file ready, then
make dep

But when I compile my pctel modem driver, I get the "no modversions.h file found" error:

$ ./configure -auto
checking for running kernel version...2.4.25
checking for ptserial...ptserial-2.4.7.c
checking for gcc...3.3.4
searching for kernel includes...found at /usr/src/linux/include
checking for modversions.h...** error
modversions.h could not be found
you probably need to configure your kernel, please read the FAQ
about no modversions.h file.

Prepare the Debian kernel-source, modversions.h 

> But when I compile my pctel modem driver, I get the "no
> modversions.h file found" error:

Install the 'kernel-header-<version>-1-<arch>' package, where:

<version> is the version of your kernel, and <arch> is the architecture type, be it 386,486, etc.

Also, I recommend you install 'build-essential'.

When you're lost again, use 'apt-cache search kernel-header | less' if you find the name of the package to be elusive.

Thomas Adam