> It took me a while to figure out where the kernel source files were.
The build system would probably do it much faster.
> Once I found them, I ran make with the KERNELPATH indicated and got
> the following error:
Generally, you shouldn't need to override anything unless the build
system fails to find the necessary parameters automatically. The
INSTALL file suggest running "make" without arguments before it
discusses how to specify the path to the kernel sources.
>
> Quote:
> [root@localhost madwifi-0.9.2]# make
> KERNELPATH=/usr/src/kernels/2.6.18-1.2849.fc6-i686
> /bin/sh: cc: command not found
> Checking requirements... ok.
> Checking kernel configuration... FAILED
> Only kernel versions 2.4.x and above are supported.
> You have .
> make: *** [configcheck] Error 1
> Can someone tell me what is causing this error?
>
cc is "C compiler". Apparently you don't have one, or it's not called
cc. In the former case, installe the compiler. In the later case, try
specifying the compiler on the command line, e.g.
make CC=gcc34
if gcc34 is your compiler. Note following requirement from INSTALL:
- gcc of same version that was used to compile the kernel (ignoring this
will cause "Invalid module format" errors during module load).
To find out the compile version used for the kernel, run dmesg to see
the kernel messages. It can also be saved in /var/log/dmesg.
It's a shame the error message wasn't not helpful at all. I have fixed
the build system to provide more helpful output if the compiler is
broken or missing.
Bookmarks