RedHat 6 directory structure to compile rtl8139.c

Lee Leavenworth
Sun Sep 19 01:04:05 1999

I have RedHat 6 and the directory structure isn't the same as in the
directions from (
Verify that the source code for your current kernel version is installed.
If you don't have a /usr/include/linux/version.h file, do
cd /usr/src/linux; make include/linux/version.h
Copy the driver source code to a source directory. I usually use
Compile the file using the compile-command at the bottom of the driver
source file. If a compile-command is not there use the following compile
gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -O6 -c

If the previous command fails with the error "linux/modversions.h not
found", delete the
from the compile command and try again.
As 'root', test the module by doing "insmod driver.o".
Install the driver module in the proper location for your distribution. This
is usually /lib/modules/kernel-version/net/driver.o. The command to do this
    install -m 644 driver.o /lib/modules/`uname -r`/net/

Are there updated instructions for redhat 6? Or is there a compiled version
located someplace?

Any information you can provide me will be most appreciated.

Lee Leavenworth

 | To unsubscribe, send mail to, and within the
 |  body of the mail, include only the text:
 |   unsubscribe this-list-name
 | You will be unsubscribed as speedily as possible.