Hello, I’m new to linux and this is my 3rd day. Everything is great so far but the problem I’m facing is that I don’t know how to install drivers from a package as everything else was already detected. I went to D-link website and downloaded the ZIP file of the driver but didn’t understand what to do next. I searched online and I found out that I should use the make command inside the directory but when I do so i get these errors:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.18-1-MANJARO/build M=/home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141 modules
make[1]: Entering directory ‘/usr/lib/modules/5.8.18-1-MANJARO/build’
CC [M] /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/core/rtw_cmd.o
In file included from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/include/drv_types.h:75,
from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/core/rtw_cmd.c:17:
/home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
252 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
from ./include/net/sock.h:59,
from ./include/linux/tcp.h:19,
from ./include/linux/ipv6.h:88,
from ./include/net/addrconf.h:50,
from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/include/osdep_service_linux.h:49,
from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/include/osdep_service.h:53,
from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/include/drv_types.h:27,
from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/core/rtw_cmd.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:281: /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1752: /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141] Error 2
make[1]: Leaving directory ‘/usr/lib/modules/5.8.18-1-MANJARO/build’
make: *** [Makefile:2327: modules] Error 2
I tried other packages from git but nothing works I really need the wifi by today if anyone can help