This is a follow up to what was discussed here: How to solve "No Wi-Fi Adapter Found" error with Realtek RTL8852BE WiFi 6 802.11ax PCIe in Ubuntu 22.04? I'm using a laptop with the same Wi-Fi card (Lenovo Ideapad 5 (15",7)), with Ubuntu running in a dual boot alongside Windows 11.
I have followed the steps in @chili555's answer:
sudo add-apt-repository -r ppa:kelebek333/kablosuz sudo apt purge rtw89-dkms sudo apt update sudo apt install git bc git clone https://github.com/HRex39/rtl8852be.git cd rtl8852be make
However, when I try make, I get the following error:
/bin/sh: 1: cc: not found
(standard_in) 1: syntax error
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-43-generic/build M=/home/rlloyd/rtl8852be modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-43-generic'
arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
make[1]: gcc: No such file or directory
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
You are using:
/bin/sh: 1: gcc: not found
(standard_in) 1: syntax error
CC [M] /home/rlloyd/rtl8852be/platform/platform_linux_pc_pci.o
/bin/sh: 1: gcc: not found
make[2]: *** [scripts/Makefile.build:285: /home/rlloyd/rtl8852be/platform/platform_linux_pc_pci.o] Error 127
make[1]: *** [Makefile:1875: /home/rlloyd/rtl8852be] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-43-generic'
make: *** [Makefile:637: modules] Error 2
What should I do now? I should note as well I am a complete beginner with Linux, thank you.