LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 01-04-2008, 07:32 AM   #1
venkatteshb
LQ Newbie
 
Registered: Oct 2007
Posts: 8

Rep: Reputation: 0
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.
 
Old 01-04-2008, 07:49 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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 08:10 AM.
 
Old 10-25-2008, 02:16 AM   #3
booleanB
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by venkatteshb View Post
[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
 
Old 10-25-2008, 02:19 AM   #4
booleanB
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
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
 
Old 11-01-2008, 06:24 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Your "make modules" isn't working, that's why the module can't be found when you run "make install".
 
Old 11-05-2008, 01:32 AM   #6
booleanB
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
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
 
Old 11-10-2008, 04:08 AM   #7
linker902000
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by booleanB View Post
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
 
Old 11-13-2008, 09:11 AM   #8
booleanB
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by linker902000 View Post
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
 
Old 11-14-2008, 02:08 AM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by booleanB View Post
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 01:59 AM.
 
Old 11-16-2008, 01:12 AM   #10
booleanB
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
[QUOTE=Nylex;3341479]
Quote:
Originally Posted by booleanB View Post
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 01:13 AM.
 
  


Reply

Tags
centos, r8168


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LAN CARD Problem for RTL813D in Centos linux raklo Linux - Networking 2 12-16-2007 09:47 AM
Installing the realtek r8168 on centOS 4.4 galrub Linux - Newbie 2 04-16-2007 03:46 AM
Realtek r8168 on Centos latest release galrub Red Hat 1 03-13-2007 06:50 PM
installing lan driver jstnhickey Linux - Hardware 1 01-13-2005 12:54 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration