LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Installing Ethernet Driver returns Error (https://www.linuxquestions.org/questions/linux-hardware-18/installing-ethernet-driver-returns-error-870266/)

Zahar2011 03-22-2011 11:55 AM

Installing Ethernet Driver returns Error
 
Hello there, I recently installed my redhat 6.0 and there was no internet connection so i read some threads that guided me to try and detect my network card which detected nothing. I then went ahead 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!

corp769 03-22-2011 12:02 PM

Can you post the output of uname -a and ls -al /lib/modules/ ?

colucix 03-22-2011 12:04 PM

To build modules you need to install the kernel-devel and the kernel-headers packages. Be sure they match the currently active version of the kernel (2.6.32-71.el6.x86_64 from the error message, but better to check using uname -r).

Zahar2011 03-22-2011 12:15 PM

Installing Ethernet Driver returnsError
 
Quote:

Originally Posted by corp769 (Post 4299348)
Can you post the output of uname -a and ls -al /lib/modules/ ?


this is the result i got


[Hassan@localhost Desktop]$Linux localhost 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[Hassan@localhost Desktop]$ ls -al /lib/modules/
total 12
dr-xr-xr-x. 3 root root 4096 Mar 17 17:44 .
dr-xr-xr-x. 13 root root 4096 Mar 17 19:37 ..
drwxr-xr-x. 7 root root 4096 Mar 17 17:54 2.6.32-71.el6.x86_64

Please bear with me i'm very new in linux so walk me through please, thank you.

Zahar2011 03-22-2011 12:30 PM

Installing Ethernet Driver returns Error
 
Quote:

Originally Posted by colucix (Post 4299354)
To build modules you need to install the kernel-devel and the kernel-headers packages. Be sure they match the currently active version of the kernel (2.6.32-71.el6.x86_64 from the error message, but better to check using uname -r).

I'm sorry i'm very new in linux, I barely understand what you talking about. However i did the following and these are the results i got:


[Hassan@localhost Desktop]$Linux localhost 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[Hassan@localhost Desktop]$ ls -al /lib/modules/
total 12
dr-xr-xr-x. 3 root root 4096 Mar 17 17:44 .
dr-xr-xr-x. 13 root root 4096 Mar 17 19:37 ..
drwxr-xr-x. 7 root root 4096 Mar 17 17:54 2.6.32-71.el6.x86_64

Please bear with me i'm very new in linux so walk me through please, thank you.

Zahar2011 03-22-2011 12:33 PM

Installing Ethernet Driver returns Error
 
Quote:

Originally Posted by Zahar2011 (Post 4299398)
I'm sorry i'm very new in linux, I barely understand what you talking about. However i did the following and these are the results i got:


[Hassan@localhost Desktop]$Linux localhost 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[Hassan@localhost Desktop]$ ls -al /lib/modules/
total 12
dr-xr-xr-x. 3 root root 4096 Mar 17 17:44 .
dr-xr-xr-x. 13 root root 4096 Mar 17 19:37 ..
drwxr-xr-x. 7 root root 4096 Mar 17 17:54 2.6.32-71.el6.x86_64

Please bear with me i'm very new in linux so walk me through please, thank you.


moreover i did the following and i got these results:


[root@localhost Desktop]# lspci | grep -i eth
03:00.0 Ethernet controller: Atheros Communications AR8151 v1.0 Gigabit Ethernet (rev c0)
[root@localhost Desktop]# lsmod
Module Size Used by
vfat 10646 1
fat 55086 1 vfat
fuse 66138 0
autofs4 27683 3
cpufreq_ondemand 10382 4
acpi_cpufreq 8593 1
freq_table 4847 2 cpufreq_ondemand,acpi_cpufreq
ipt_REJECT 2349 2
nf_conntrack_ipv4 9440 2
nf_defrag_ipv4 1449 1 nf_conntrack_ipv4
iptable_filter 2759 1
ip_tables 17733 1 iptable_filter
ip6t_REJECT 4562 2
nf_conntrack_ipv6 19655 2
xt_state 1458 4
nf_conntrack 79643 3 nf_conntrack_ipv4,nf_conntrack_ipv6,xt_state
ip6table_filter 2855 1
ip6_tables 19392 1 ip6table_filter
ipv6 321209 30 ip6t_REJECT,nf_conntrack_ipv6
dm_mirror 14003 0
dm_region_hash 12200 1 dm_mirror
dm_log 10088 2 dm_mirror,dm_region_hash
uinput 8182 0
rfkill 19617 1
wmi 6221 0
sg 30186 0
uvcvideo 61644 0
videodev 38980 1 uvcvideo
v4l2_compat_ioctl32 7145 1 videodev
serio_raw 4816 0
i2c_i801 11190 0
iTCO_wdt 11708 0
iTCO_vendor_support 3022 1 iTCO_wdt
snd_hda_codec_intelhdmi 18011 1
snd_hda_codec_conexant 36927 1
snd_hda_intel 25194 2
snd_hda_codec 82097 3 snd_hda_codec_intelhdmi,snd_hda_codec_conexant,snd_hda_intel
snd_hwdep 6746 1 snd_hda_codec
snd_seq 56557 0
snd_seq_device 6626 1 snd_seq
snd_pcm 84700 2 snd_hda_intel,snd_hda_codec
snd_timer 23087 2 snd_seq,snd_pcm
snd 70021 13 snd_hda_codec_intelhdmi,snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq _device,snd_pcm,snd_timer
soundcore 8052 1 snd
snd_page_alloc 8628 2 snd_hda_intel,snd_pcm
ext4 353979 3
mbcache 7918 1 ext4
jbd2 89033 1 ext4
sr_mod 16162 0
cdrom 39769 1 sr_mod
sd_mod 37221 5
crc_t10dif 1507 1 sd_mod
ahci 39105 2
usb_storage 49386 1
i915 329236 2
drm_kms_helper 32113 1 i915
drm 200778 3 i915,drm_kms_helper
i2c_algo_bit 5664 1 i915
i2c_core 31274 6 videodev,i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video 20966 1 i915
output 2471 1 video
dm_mod 76856 11 dm_mirror,dm_log
[root@localhost Desktop]# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b

kindly help me out

Zahar2011 03-22-2011 12:57 PM

Installing Ethernet Driver returns Error
 
No one is replying me here!

Can someone help me here?

I recently installed my redhat 6.0 and there was no internet connection so i read some threads that guided me to try and detect my network card which detected nothing. I then went ahead 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


the output of 'uname -a and ls -al /lib/modules/' is as follows

[Hassan@localhost Desktop]$Linux localhost 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[Hassan@localhost Desktop]$ ls -al /lib/modules/
total 12
dr-xr-xr-x. 3 root root 4096 Mar 17 17:44 .
dr-xr-xr-x. 13 root root 4096 Mar 17 19:37 ..
drwxr-xr-x. 7 root root 4096 Mar 17 17:54 2.6.32-71.el6.x86_64

kindly help me i am new in linux i cant do much and pc now doesn't have an internet connection for me to be able to register to RHN pls help me out

corp769 03-22-2011 01:07 PM

Wow, how many times are you going to post the same output? Once is good. And you can not expect me to be here for you every single second. We are here on a VOLUNTEER basis. If you are so desperate for answers, call Red Hat for support, since that is what you are using, that is if you paid for it.

Now, as colucix mentioned in the post after my first, do you have the kernel-headers and kernel-devel dependencies installed?

Zahar2011 03-22-2011 01:19 PM

Quote:

Originally Posted by corp769 (Post 4299473)
Wow, how many times are you going to post the same output? Once is good. And you can not expect me to be here for you every single second. We are here on a VOLUNTEER basis. If you are so desperate for answers, call Red Hat for support, since that is what you are using, that is if you paid for it.

Now, as colucix mentioned in the post after my first, do you have the kernel-headers and kernel-devel dependencies installed?

I'm sorry i dont have the subscription to call linux for support pls help me out.

on the kernel-headers and kernel-devel dependencies i dont understand much about that, like i mentioned earlier I AM NEW in linux. However i typed sudo yum install kernel-devel kernel-headers but i got the result:
No Package kernel-devel available.

how do i get it and how do i install it? kindly walk me through step by step thank u!

corp769 03-23-2011 06:07 AM

Show me what comes up when you do the following:
Code:

yum install kernel*

Zahar2011 03-23-2011 12:33 PM

Installing Ethernet Driver returns Error
 
Quote:

Originally Posted by corp769 (Post 4300169)
Show me what comes up when you do the following:
Code:

yum install kernel*

it says: setting up install process
Nothing to do.

Moreover i got the kernel devel for my linux version from REDHAT today and when i installed it, did install correctly but when untar the ethernet driver and run it i got the following result:


[root@localhost tmp]# cd /opt/
[root@localhost opt]# tar vjxf r8168-8.022.00.tar.bz2
r8168-8.022.00/
r8168-8.022.00/Makefile
r8168-8.022.00/src/
r8168-8.022.00/src/r8168.h
r8168-8.022.00/src/r8168_n.c
r8168-8.022.00/src/rtl_eeprom.h
r8168-8.022.00/src/r8168_asf.h
r8168-8.022.00/src/r8168_asf.c
r8168-8.022.00/src/Makefile
r8168-8.022.00/src/rtltool.h
r8168-8.022.00/src/rtltool.c
r8168-8.022.00/src/Makefile_linux24x
r8168-8.022.00/src/rtl_eeprom.c
r8168-8.022.00/autorun.sh
r8168-8.022.00/README
[root@localhost opt]# ls
kernel-devel-2.6.32-71.el6.x86_64.rpm r8168-8.022.00
kmod-atl1e-1.0.1.9-2.el5.elrepo.i686.rpm r8168-8.022.00.tar.bz2
[root@localhost opt]# cd r8168-8.022.00
[root@localhost r8168-8.022.00]# ls
autorun.sh Makefile README src
[root@localhost r8168-8.022.00]# vi README
[root@localhost r8168-8.022.00]# ./autorun.sh

Check old driver and unload it.
Build the module and install
expr: syntax error
/usr/src/kernels/2.6.32-71.el6.x86_64/arch/x86/Makefile:81: stack protector enabled but no compiler support
make[2]: gcc: Command not found
/bin/sh: gcc: command not found
make[3]: *** [/opt/r8168-8.022.00/src/r8168_n.o] Error 127
make[2]: *** [_module_/opt/r8168-8.022.00/src] Error 2
make[1]: *** [modules] Error 2
make: *** [modules] Error 2

Dont really knw what next to do

Zahar2011 03-23-2011 12:43 PM

Installing Ethernet Driver returns Error
 
Hello everyone,

I was here yesterday trying to make my ethernet card(which my rhel 6.0)doesn't detect. I initially untar a file that has the driver for my card which i got from atheros. When i tried to run it i.e ./autorun.sh i got the following result:


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

so i yesterday came to this forum and many volunteers advised me to get a kernel devel for my kernel version and install it which i did sucessfully, and when i tried to install the atheros ethernet card driver in question i got the following result:


[root@localhost tmp]# cd /opt/
[root@localhost opt]# tar vjxf r8168-8.022.00.tar.bz2
r8168-8.022.00/
r8168-8.022.00/Makefile
r8168-8.022.00/src/
r8168-8.022.00/src/r8168.h
r8168-8.022.00/src/r8168_n.c
r8168-8.022.00/src/rtl_eeprom.h
r8168-8.022.00/src/r8168_asf.h
r8168-8.022.00/src/r8168_asf.c
r8168-8.022.00/src/Makefile
r8168-8.022.00/src/rtltool.h
r8168-8.022.00/src/rtltool.c
r8168-8.022.00/src/Makefile_linux24x
r8168-8.022.00/src/rtl_eeprom.c
r8168-8.022.00/autorun.sh
r8168-8.022.00/README
[root@localhost opt]# ls
kernel-devel-2.6.32-71.el6.x86_64.rpm r8168-8.022.00
kmod-atl1e-1.0.1.9-2.el5.elrepo.i686.rpm r8168-8.022.00.tar.bz2
[root@localhost opt]# cd r8168-8.022.00
[root@localhost r8168-8.022.00]# ls
autorun.sh Makefile README src
[root@localhost r8168-8.022.00]# vi README
[root@localhost r8168-8.022.00]# ./autorun.sh

Check old driver and unload it.
Build the module and install
expr: syntax error
/usr/src/kernels/2.6.32-71.el6.x86_64/arch/x86/Makefile:81: stack protector enabled but no compiler support
make[2]: gcc: Command not found
/bin/sh: gcc: command not found
make[3]: *** [/opt/r8168-8.022.00/src/r8168_n.o] Error 127
make[2]: *** [_module_/opt/r8168-8.022.00/src] Error 2
make[1]: *** [modules] Error 2
make: *** [modules] Error 2

can anyone see me through?

bathory 03-23-2011 02:01 PM

Quote:

make[2]: gcc: Command not found
You need to install gcc if you want to compile your driver

Regards

Zahar2011 03-23-2011 02:26 PM

Installing Ethernet Driver returns Error
 
Quote:

Originally Posted by bathory (Post 4300771)
You need to install gcc if you want to compile your driver

Regards

Bear with me i am very new in linux, how do i install gcc? and where can i find it? plus is that all i need following the errors?

EDDY1 03-23-2011 02:48 PM

I think you need to adduser to src group and chmod so that you can make the /lib/modules/ folder for build.


All times are GMT -5. The time now is 09:15 AM.