LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   no suitable configured kernel include tree found (https://www.linuxquestions.org/questions/debian-26/no-suitable-configured-kernel-include-tree-found-235144/)

r.stiltskin 09-25-2004 02:37 PM

no suitable configured kernel include tree found
 
I'm using Debian for the first time today.

I installed Sarge (on my laptop), & selected "desktop environment" so it downloaded & installed 650 packages. No problems with the installation, I modified XF86Config-4 slightly so the display & mouse are working fine.

I realized that the installer didn't install make, gcc, g++, so I used apt-get and installed them.

I need brickOS to program a Lego RCX for my Intro. to Robotics class, so I installed binutils-h8300, gcc-h8300, and brickos-0.2.6.10.6, all successfully.

But I'm stuck at trying to install the legousbtower-0.5.4 driver (for the IR tower that communicates with the Lego RCX). When I executed the configure script to install this module, it fails at:
Code:

checking for kernel include tree... configure: error: no suitable configured kernel include tree found
I'm guessing that I need to install the kernel-source, so I tried
Code:

apt-get -s install kernel-source-2.4.26
and it looks like that will do it (without the -s option), but the output says:
Quote:

Suggested packages:
libncurses-dev kernel-package
The following NEW packages will be installed:
kernel-source-2.4.26
Does that mean that I should ALSO do:
apt-get install libncurses-dev
and
apt-get intall kernel-package
?

What are they? What are they for?

r.stiltskin 09-25-2004 05:10 PM

Update to my question:

I got the kernel-source but that didn't solve the problem.
I figured out that the configure script to install the legousbtower.o driver is looking for a file "autoconf.h".

I found that file, not in the kernel-source package, but in /usr/include/linux/ & I figured out how to feed that path to the configure script, so it got past that problem.

Next, the script looks for a Makefile in that directory, which it doesn't find, so it says
warning: not found - using default flags

Next, the script check the kernel version. In /usr/include/linux/version.h it finds:
Code:

#define UTS_RELEASE "2.6.0-test 7"
and outputs:
[code]configure: error: Unsupported kernel version

BUT MY KERNEL VERSION IS 2.4.26!

Why this discrepancy in version.h?

zuralin 09-25-2004 05:20 PM

apt-get install kernel-headers-`uname -r`

r.stiltskin 09-26-2004 08:55 AM

Thanks, zuralin. That did it.

eternauta3k 08-02-2005 03:37 PM

specific instructions
 
For those who were looking for help in this post, here's what I specifically did to direct configure to my files:
Search for KINC and KSRC, and you'll probably find if clauses that set those variables. What I did was comment them and add, afterwards, KINC="/usr/include" and KSRC="/usr/src/somekernelnumber"
If there's something wrong, please tell me. However, this way I managed to get up to "kernel version not supported"


All times are GMT -5. The time now is 12:35 PM.