LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem installing LAN DRIVER R8168 in CentOS 5.0 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-installing-lan-driver-r8168-in-centos-5-0-a-611078/)

venkatteshb 01-04-2008 06:32 AM

Problem installing LAN DRIVER R8168 in CentOS 5.0
 
[root@localhost r8168-8.003.00]# make clean modules
make -C src/ clean
make[1]: Entering directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers
make[1]: Leaving directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
make -C src/ modules
make[1]: Entering directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
make -C /lib/modules/2.6.18-8.el5/build SUBDIRS=/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-8.el5-i686'
make[2]: *** No rule to make target `Drivers/r8168-8.003.00/src'. Stop.
make[2]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-i686'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
make: *** [modules] Error 2

[root@localhost r8168-8.003.00]# make install
make -C src/ install
make[1]: Entering directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
install -m 644 -c r8168.ko /lib/modules/2.6.18-8.el5/kernel/drivers/net/
install: cannot stat `r8168.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
make: *** [install] Error 2


This was the error message that i got.

Can anyone help fix this error.

Nylex 01-04-2008 06:49 AM

The first error appears to occur because of the space in your LAN Drivers directory name. Try moving the r8168-8.003.00 directory up one level and then compiling again. The source compiles for me when I put that directory in one which doesn't have a space in the name, but I get the same error if there is a space in the parent's name. Edit: a better solution would be to edit the makefile in src/ so that it handles spaces properly. I'm not an expert, so I'm not really sure how to do this.

booleanB 10-25-2008 01:16 AM

Quote:

Originally Posted by venkatteshb (Post 3010911)
[root@localhost r8168-8.003.00]# make clean modules
make -C src/ clean
make[1]: Entering directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers
make[1]: Leaving directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
make -C src/ modules
make[1]: Entering directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
make -C /lib/modules/2.6.18-8.el5/build SUBDIRS=/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-8.el5-i686'
make[2]: *** No rule to make target `Drivers/r8168-8.003.00/src'. Stop.
make[2]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-i686'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
make: *** [modules] Error 2

[root@localhost r8168-8.003.00]# make install
make -C src/ install
make[1]: Entering directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
install -m 644 -c r8168.ko /lib/modules/2.6.18-8.el5/kernel/drivers/net/
install: cannot stat `r8168.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/venkatteshb/Source/LAN Drivers/r8168-8.003.00/src'
make: *** [install] Error 2


This was the error message that i got.

Can anyone help fix this error.

got the same error

booleanB 10-25-2008 01:19 AM

Quote:

Originally Posted by Nylex (Post 3010921)
The first error appears to occur because of the space in your LAN Drivers directory name. Try moving the r8168-8.003.00 directory up one level and then compiling again. The source compiles for me when I put that directory in one which doesn't have a space in the name, but I get the same error if there is a space in the parent's name. Edit: a better solution would be to edit the makefile in src/ so that it handles spaces properly. I'm not an expert, so I'm not really sure how to do this.

this fixes the first part but not this

[root@localhost r8168-8.003.00]# make install

Nylex 11-01-2008 05:24 AM

Your "make modules" isn't working, that's why the module can't be found when you run "make install".

booleanB 11-05-2008 12:32 AM

Quote:

Originally Posted by Nylex (Post 3328082)
Your "make modules" isn't working, that's why the module can't be found when you run "make install".

I did not have gcc installed now its OK

I installed r8168 and running now

thanks

linker902000 11-10-2008 03:08 AM

Quote:

Originally Posted by booleanB (Post 3332106)
I did not have gcc installed now its OK

I installed r8168 and running now

thanks

Hi, I am having the same problem with installing r8168, I am using redhat el4.

I am newbie on this redhat el4, can anybody please help how to install the r8268?

thanks in advance.

regards,

Linkie

booleanB 11-13-2008 08:11 AM

Quote:

Originally Posted by linker902000 (Post 3336859)
Hi, I am having the same problem with installing r8168, I am using redhat el4.

I am newbie on this redhat el4, can anybody please help how to install the r8268?

thanks in advance.

regards,

Linkie

1) when you install Linux add the gcc package

2) download the driver from realtek

3) do the things in the read me file of drivers

4) set IPs and other things

Raddy to go

Nylex 11-14-2008 01:08 AM

Quote:

Originally Posted by booleanB (Post 3340595)
1) when you install Linux add the gcc package

You'll probably also want to install the kernel source and headers.

booleanB 11-16-2008 12:12 AM

[QUOTE=Nylex;3341479]
Quote:

Originally Posted by booleanB (Post 3340595)
1) when you install Linux add the gcc package/QUOTE]

You'll probably also want to install the kernel source and headers.

yep that's true

but source was there for me, when I installed development packages or sort while installing Linux (centos 5.1)


All times are GMT -5. The time now is 07:17 PM.