LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2011, 09:46 AM   #1
Hassan989
LQ Newbie
 
Registered: Mar 2011
Posts: 25

Rep: Reputation: 0
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!
 
Old 03-22-2011, 09:50 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
Old 03-22-2011, 10:11 AM   #3
Hassan989
LQ Newbie
 
Registered: Mar 2011
Posts: 25

Original Poster
Rep: Reputation: 0
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
 
Old 03-22-2011, 10:30 AM   #4
Hassan989
LQ Newbie
 
Registered: Mar 2011
Posts: 25

Original Poster
Rep: Reputation: 0
Installing Ethernet Driver gives me Error

Quote:
Originally Posted by MS3FGX View Post
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
 
Old 03-22-2011, 02:34 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing ethernet card driver Completely Clueless Linux - Wireless Networking 47 04-14-2008 07:35 AM
installing an ethernet card driver shuffdog Linux - Networking 7 06-11-2006 01:30 PM
error while installing bcm4400 RPM ethernet driver ksr Red Hat 1 10-08-2004 02:33 PM
installing ethernet driver help sbcdivision63 Red Hat 3 11-05-2003 04:23 PM
installing an ethernet card driver cmack Slackware 1 08-24-2003 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration