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-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025
Error! DKMS tree already contains: 8812au-5.6.4.2_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
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.7-200.fc37.x86_64/build M=/home/chunchoc/Downloads/rtl8812au modules
make[1]: *** /lib/modules/6.1.7-200.fc37.x86_64/build: No such file or directory. Stop.
make: *** [Makefile:1730: modules] Error 2
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.
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.