Can't compile on Fedora 27 with kernel 4.15
When trying to compile on my Fedora 27 system with Kernel 4.15 I get the following...
make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.3-300.fc27.x86_64/build M=/home/david/Downloads/rtl8192du modules
make[1]: *** /lib/modules/4.15.3-300.fc27.x86_64/build: No such file or directory. Stop.
make: *** [Makefile:149: modules] Error 2
Is this because it is not compatible with my Kernel? Any help would be appreciated.
Thanks :)
You have not installed the kernel headers. If you get it right, then 'ls /lib/modules/4.15.3-300.fc27.x86_64/build' should have a directory named "include" in the listing/
Thank you lwfinger :) I installed the headers as suggested and now not receiving the error. Instead getting a different error now as follows:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.3-300.fc27.x86_64/build M=/home/david/Downloads/rtl8192du modules
make[1]: Entering directory '/usr/src/kernels/4.15.3-300.fc27.x86_64'
Makefile:936: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.
make[1]: Leaving directory '/usr/src/kernels/4.15.3-300.fc27.x86_64'
make: *** [Makefile:149: modules] Error 2
Now elfutils-libelf-devel did install for me but libelf-dev, libelf-devel are not found when I try to install.
You only need one of the three. Have you tried to make now?
Yes, I have tried both sudo make and just make and get the above error after the install of the lib package.
You will have to ask on the Fedora Forums. When I got that error on openSUSE, I installed libelf-devel and all was well. Obviously, Fedota packages thing differently.
Thank you, will see if anyone on Fedora can help me from here :)
You will have to ask on the Fedora Forums. When I got that error on openSUSE, I installed libelf-devel and all was well. Obviously, Fedota packages thing differently.
See the Jose Luis comment:
https://akshaycv006.wordpress.com/2017/01/12/installing-realtek-rtl8723be-driver-for-ubuntu-debian-or-fedora/