Hi, I have been trying to install the driver for my WiFi adapter but I have some problems.
Here is my output using make dkms_install:
❯ sudo make dkms_install
cp -r * /usr/src/8812au-220.127.116.11_35491.20191025
dkms add -m 8812au -v 18.104.22.168_35491.20191025
Error! DKMS tree already contains: 8812au-22.214.171.124_35491.20191025
You cannot add the same module/version combo more than once.
make: *** [Makefile:1789: dkms_install] Error 3
Here is my output using make:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.7-200.fc37.x86_64/build M=/home/chunchoc/Downloads/rtl8812au modules
make: *** /lib/modules/6.1.7-200.fc37.x86_64/build: No such file or directory. Stop.
make: *** [Makefile:1730: modules] Error 2
I would appreciate your help.
It looks like you’re trying to compile a module that already exists for that version/kernel? Can you
sudo modprobe 8812au?
It show me this:
❯ sudo modprobe 8812au
modprobe: FATAL: Module 8812au not found in directory /lib/modules/6.1.7-200.fc37.x86_64
Hmmm, looks like you might not have the
kernel-devel installed for that kernel.
I solved the problem.
For some reason I didn’t have the build directory in the version of kernel I was using , so I just switched to another version that did have it and it worked.
sudo make && sudo make install
You’ll want to make sure you use akmods or dkms or else you’ll need to do this again for every kernel update.
As Scott said, installing manually means the user must recompile with every kernel update.
Using akmods or dkms to compile and install the module would mean it is done automatically for each kernel upgrade so it becomes install it and forget it for future upgrades.
That also should never be done with
sudo make. Instead it should be done with
make && sudo make install so all the files remain owned by the user and not root in the local directory tree. The install manages ownership during the install portion for system installed files.