Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
01-04-2008, 06:32 AM
#1
LQ Newbie
Registered: Oct 2007
Posts: 8
Rep:
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.
01-04-2008, 06:49 AM
#2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,370
Rep:
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.
Last edited by Nylex; 01-04-2008 at 07:10 AM .
10-25-2008, 01:16 AM
#3
LQ Newbie
Registered: Jun 2008
Posts: 7
Rep:
Quote:
Originally Posted by
venkatteshb
[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
10-25-2008, 01:19 AM
#4
LQ Newbie
Registered: Jun 2008
Posts: 7
Rep:
Quote:
Originally Posted by
Nylex
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
11-01-2008, 05:24 AM
#5
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,370
Rep:
Your "make modules" isn't working, that's why the module can't be found when you run "make install".
11-05-2008, 12:32 AM
#6
LQ Newbie
Registered: Jun 2008
Posts: 7
Rep:
Quote:
Originally Posted by
Nylex
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
11-10-2008, 03:08 AM
#7
LQ Newbie
Registered: Nov 2008
Posts: 1
Rep:
Quote:
Originally Posted by
booleanB
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
11-13-2008, 08:11 AM
#8
LQ Newbie
Registered: Jun 2008
Posts: 7
Rep:
Quote:
Originally Posted by
linker902000
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
11-14-2008, 01:08 AM
#9
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,370
Rep:
Quote:
Originally Posted by
booleanB
1) when you install Linux add the gcc package
You'll probably also want to install the kernel source and headers.
Last edited by Nylex; 11-16-2008 at 12:59 AM .
11-16-2008, 12:12 AM
#10
LQ Newbie
Registered: Jun 2008
Posts: 7
Rep:
[QUOTE=Nylex;3341479]
Quote:
Originally Posted by
booleanB
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)
Last edited by booleanB; 11-16-2008 at 12:13 AM .
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 12:00 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News