LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing Ethernet Driver gives me Error (https://www.linuxquestions.org/questions/linux-software-2/installing-ethernet-driver-gives-me-error-870233/)

Hassan989 03-22-2011 09:46 AM

Installing Ethernet Driver gives me Error
 
Hi there, I have to admit that i'm very new in linux and after installing my redhat 6.0 there was no internet connection so read some threads that guided me to try and detect my network card which detected nothing. I then went agead to download ethernet realtek ethernet gigabyte card driver for my version of linux. I untar the file and i got the directory r8168-x.x.xxx.xx, a README file so i read the README file and it asked me to run ./autorun.sh which i did but i got the following error:

Check old driver and unload it.
Build the module and install
make: *** /lib/modules/2.6.32-71.el6.x86_64/build: No such file or directory. Stop.
make[1]: *** [modules] Error 2
make: *** [modules] Error 2


kindly guide me through i dont know how to proceed from there!

MS3FGX 03-22-2011 09:50 AM

It is trying to build the kernel module against the kernel source, but you don't appear to have the kernel source packages installed.

You should be able to install the kernel source package with your package manager, then try running the install script again.

Hassan989 03-22-2011 10:11 AM

thanks for your reply but like i mentioned in my first thread that i'm very new in linux. Kindly walk me through to compile the source i can see a directory called src, should i move to it and type what to compile it? when i moved to the directory src i got the following info:

[Hassan@localhost src]$ ls
Makefile r8168_asf.c r8168.h rtl_eeprom.c rtltool.c
Makefile_linux24x r8168_asf.h r8168_n.c rtl_eeprom.h rtltool.h

kindly walk me through, many thnx

Hassan989 03-22-2011 10:30 AM

Installing Ethernet Driver gives me Error
 
Quote:

Originally Posted by MS3FGX (Post 4299157)
It is trying to build the kernel module against the kernel source, but you don't appear to have the kernel source packages installed.

You should be able to install the kernel source package with your package manager, then try running the install script again.



thanks for your reply but like i mentioned in my first thread that i'm very new in linux. Kindly walk me through to compile the source i can see a directory called src, should i move to it and type what to compile it? when i moved to the directory src i got the following info:

[Hassan@localhost src]$ ls
Makefile r8168_asf.c r8168.h rtl_eeprom.c rtltool.c
Makefile_linux24x r8168_asf.h r8168_n.c rtl_eeprom.h rtltool.h

kindly walk me through, many thnx

knudfl 03-22-2011 02:34 PM

The r8168 source can be compiled anywhere. Default is /home/<name>/tmp/.

To compile a driver, you will need the package 'kernel-devel-`uname -r`.

# yum install kernel kernel-devel : The two packages must be the same version.
But I guess, you can't do that with no internet.
Solution : Contact Redhat for the packages.

..


All times are GMT -5. The time now is 01:16 AM.