aircrack-ng / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
GNU General Public License v2.0
3.5k stars 767 forks source link

Compiling not working [MAKE] #1131

Open paoloronco opened 8 months ago

paoloronco commented 8 months ago

cd Desktop

git clone https://github.com/aircrack-ng/rtl8812au.git

cd rtl8812au

make install install -p -m 644 88XXau.ko /lib/modules/6.5.0-kali3-amd64/kernel/drivers/net/wireless/ install: cannot stat '88XXau.ko': No such file or directory make: *** [Makefile:1737: install] Error 1

make install install -p -m 644 88XXau.ko /lib/modules/6.5.0-kali3-amd64/kernel/drivers/net/wireless/ install: cannot stat '88XXau.ko': No such file or directory make: *** [Makefile:1737: install] Error 1

Make not working

MisaelK1 commented 8 months ago

Same error did u find any way to fix it?

paoloronco commented 8 months ago

Yes, i changed Driver and I used those one Those for me works so well and no errors at all

mkdir -p ~/src
cd ~/src
git clone https://github.com/morrownr/8812au-20210629.git
cd ~/src/8812au-20210629
gcc –version
sudo apt install gcc-12
sudo ./install-driver.sh   
MrDinkh125 commented 8 months ago

Build package dependencies per README.md

Louay112 commented 7 months ago

The following steps fixed my issue on Kali VM with Intel hardware:

1)sudo apt update 2)apt-cache search linux-headers # Choose header files for Linux x.x.x-amd64 (Change X to the version that appears to you) 3)sudo apt install linux-headers-x.x.x-amd64 # (Replace X) 4)sudo shutdown -r 0 # Reboot 5)git clone https://github.com/aircrack-ng/rtl8812au.git # Download the driver 6)cd rtl8812au # Change directory 7)sudo make && make install # Install the driver 8)sudo shutdown -r 0 # Reboot

Done!!

image

Cationator commented 7 months ago

I followed Louay112's steps and am still having the same issue. I have tried removing and reinstalling kernel headers, tried multiple different drivers, etc. My issue seems to come down to the /lib/modules/6.6.9-amd64/build/.

My error when using the make command: make[1]: Entering directory '/usr/lib/modules/6.6.9-amd64/build' make[1]: *** No rule to make target 'modules'. Stop. make[1]: Leaving directory '/usr/lib/modules/6.6.9-amd64/build'

My error when using the dkms_install command Error! Your kernel headers for kernel 6.6.9-amd64 cannot be found at /lib/modules/6.6.9-amd64/build or /lib/modules/6.6.9-amd64/source. Please install the linux-headers-6.6.9-amd64 package or use the --kernelsourcedir option to tell DKMS where it's located.

The only thing that I notice is that the linux-headers-6.6.9-amd64 appears red when i do ls. Unsure if this is an issue.

All help greatly appreciated.

Cationator commented 7 months ago

Never mind, it worked minuted after I posted.

I manually removed the entire 6.6.9 directory, sudo apt remove then sudo apt install again. Reboot and verify that the correct files are in place.

I did get an error "install: cannot create regular file '/lib/modules/6.6.9-amd64/kernel/drivers/net/wireless/88XXau.ko': Permission denied" when running the make command, but my Alfa card is working just fine now so I will ignore it.