RinCat / RTL88x2BU-Linux-Driver

Realtek RTL88x2BU WiFi USB Driver for Linux
GNU General Public License v2.0
1.23k stars 191 forks source link

build issue #85

Open Luan-Kim opened 3 years ago

Luan-Kim commented 3 years ago

Hello I'm trying to build the modules but the error occur So I can't install the module.

user@ubuntu:/usr/src/rtl88x2bu-git$ sudo make KSRC=/lib/modules/5.8.0-50-generic/build /bin/sh: 1: cc: not found (standard_in) 1: syntax error make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.0-50-generic/build M=/usr/src/rtl88x2bu-git modules make[1]: Entering directory '/usr/src/linux-headers-5.8.0-50-generic' arch/x86/Makefile:147: CONFIG_X86_X32 enabled but no binutils support make[1]: gcc: Command not found /bin/sh: 1: gcc: not found (standard_in) 1: syntax error CC [M] /usr/src/rtl88x2bu-git/core/rtw_cmd.o /bin/sh: 1: gcc: not found make[2]: [scripts/Makefile.build:286: /usr/src/rtl88x2bu-git/core/rtw_cmd.o] Error 127 make[1]: [Makefile:1783: /usr/src/rtl88x2bu-git] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-50-generic' make: *** [Makefile:2378: modules] Error 2

This is the error message when I trying to build the module

I use Ubuntu 20.04.1 kernel 5.8.0-50-generic

RinCat commented 3 years ago

Install build-essential and your kernel headers.