Compiling RealTek RTL8111/8168B driver keeps on failing
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Compiling RealTek RTL8111/8168B driver keeps on failing
I am plagued by the mess with RealTek networking drivers for the RTL8111/8168B, but when I try to follow the instructions to "make" the driver, it keeps on failing because something is not installed.
According to the package manager, the correct linux-source is installed. However...
Code:
make: *** /lib/modules/3.0.0-16-generic/build: No such file or directory. Stop.
make: *** [LINUX] Error 2
Because many distros try to use the incorrect driver, so since the distros, such as Ubuntu or Linux Mint, are not fixing this error, users are left to fend for themselves.
I tried again last night, with version 8.029.00 dated 2012/3/29, after updating to 3.0.0.17, and no joy.
Code:
$ ./autorun.sh
Check old driver and unload it.
rmmod r8169
ERROR: Removing 'r8169': Operation not permitted
Build the module and install
make: *** /lib/modules/3.0.0-17-generic/build: No such file or directory. Stop.
make[1]: *** [clean] Error 2
make: *** [clean] Error 2
# ./autorun.sh
Check old driver and unload it.
rmmod r8169
Build the module and install
make: *** /lib/modules/3.0.0-17-generic/build: No such file or directory. Stop.
make[1]: *** [clean] Error 2
make: *** [clean] Error 2
On my system (Slackware) /lib/modules/3.2.13/build is a symlink to my kernel source (/usr/src/linux-3.2.13). Try to create such a symlink to your kernel source and do it again.
I finally figured out why the driver would not compile.
The instructions said to install two dev files (linux-source and linux-source-3.0.0) and I had; however, there was some sort of install error that meant that they wouldn't run properly and kept on causing an indeterminate error. No install error was given to me, so I had no idea there was a problem with them.
After contacting RealTek, I got the idea to check the installed program list, to see what state these two files were in. They were listed with an exclamation mark, so I re-installed them and then I was able to compile completely.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.