hey I am newbie to linux (rhel5)
I am installed the OS rhel5 kernel 2.6.53.e15
I am using realtek 8101e network adapter, by default it is not detected.
Quote:
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01)
|
So I download the driver in tar format from vendors site
It contains a readme file as follows
Quote:
<Quick install with proper kernel settings>
Check whether the built-in driver, r8169.ko (or r8169.o for kernel 2.4.x), is installed.
# lsmod | grep r8169
If it is installed, please remove it.
# rmmod r8169
note: If the built-in driver cannot removed by rmmod, please edit /etc/modprobe.conf and comment 'alias eth0 r8169'. Then, remmove it again or reboot your computer.
Unpack the tarball :
# tar vjxf r8101-1.aaa.bb.tar.bz2
Change to the directory:
# cd r8101-1.aaa.bb
If you are running the target kernel, then you should be able to do :
# make clean modules (as root or with sudo)
# make install
# depmod -a
# insmod ./src/r8101.ko (or r8101.o for kernel 2.4.x)
|
I extract the tar file
changing the directory
when i give that command make clean modules it executes some error
Quote:
root@localhost r8101-1.011.00]# make clean modules
make -C src/ clean
make[1]: Entering directory `/root/Desktop/r8101-1.011.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order
make[1]: Leaving directory `/root/Desktop/r8101-1.011.00/src'
make -C src/ modules
make[1]: Entering directory `/root/Desktop/r8101-1.011.00/src'
make -C /lib/modules/2.6.18-53.el5/build SUBDIRS=/root/Desktop/r8101-1.011.00/src modules
/usr/src/kernels/2.6.18-53.el5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.18-53.el5-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.18-53.el5-i686'
CC [M] /root/Desktop/r8101-1.011.00/src/r8101_n.o
/bin/sh: gcc: command not found
make[3]: *** [/root/Desktop/r8101-1.011.00/src/r8101_n.o] Error 127
make[2]: *** [_module_/root/Desktop/r8101-1.011.00/src] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-53.el5-i686'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/Desktop/r8101-1.011.00/src'
make: *** [modules] Error 2
|
please help me.... what be the solution