Am doing a internship, fairly new to linux.
Installed RedHat 7, discs from RH Unleashed book, on intel box, as server, installed fine.
Problem is the lan is token ring so need to install Madge card driver. I have it copied in the tmp dir and untarred ready to make. However the first run of make in RH requires you to give the prefix (path) to the kernel headers or the source.
Checking on an install of the headers pkg, I am told it is already installed. The question is how do I find out where it is. I see the xx.h files but the make routine answers that what I put in for the prefix does not find the headers.
Yes, I am definitely a newbie.
Any help would be appreciated
eeeeeeek! Red Hat 7.0!
The compiler that originally shipped with Red Hat 7.0 was a new version and was buggy. Make sure you have applied the updates available for 7.0.
The kernel source will be installed in /usr/src/linux-<kernelversion>
There will also be a symlink /usr/src/linux pointing to the source.
Do you have the kernel source installed? You can find out with:
rpm -q kernel source
You must have the kernel source installed for the kernel you are running.
This shows you what kernel you are running.
Another reason it may not be finding the kernel source is that Red Hat adds the word "custom" to the end of the EXTRAVERSION line in the toplevel Makefile in the kernel source. This helps prevent newbie kernel compilers from overwriting their existing kernels.
Take a look at this thread. It is for RH 7.3, but it will give you an idea what is required to compile a kernel module