Hi.
I am trying to compile driver rtl8192eu to use with my external wifi interface TL-WN822N adapter.
I am getting an error on the make command:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.17.0-kali1-amd64/build M=/root/rtl8192eu-linux-driver modules
make[1]: *** /lib/modules/4.17.0-kali1-amd64/build: No such file or directory. Stop.
make: *** [Makefile:1700: modules] Error 2
I have the latest version of Kali Linux installed on a USB Pendrive.
Can somebody assist me, not to familiar with compiling errors in Linux.
Thanks TC.
Here's what I did:
**Performed a apt-get update, upgrade and dist-upgrade initially.**
1) Verified I had the latest Kali Image Build.
uname -a
Linux kali 4.17.0-kali1-amd64 #1 SMP Debian 4.17.8-1kali1 (2018-07-24) x86_64 GNU/Linux
Latest image was already installed.
root@kali:~# apt-get install linux-image-4.17.0-kali3-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-4.17.0-kali3-amd64 is already the newest version (4.17.17-1kali1).
2) Needed to install Linux-Headers. Typed the following command:
apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.17.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-4.17.0-kali1-amd64'
E: Couldn't find any package by regex 'linux-headers-4.17.0-kali1-amd64'
3) Could not find a matching linux-header-4.17.0-kali1-amd64. Searched linux-images. text in red was the selected linux header I install.
root@kali:~# apt-cache search linux-image
linux-headers-4.17.0-kali3-amd64 - Header files for Linux 4.17.0-kali3-amd64
linux-headers-4.17.0-kali3-cloud-amd64 - Header files for Linux 4.17.0-kali3-cloud-amd64
linux-image-4.17.0-kali3-amd64 - Linux 4.17 for 64-bit PCs
4) Finally entered the first 3 terminal commands below before receiving the ?Make? error.
git clone https://github.com/Mange/rtl8192eu-l...iver/issues/44
cd rtl8192eu-linux-driver
sudo make
sudo make install
sudo modprobe 8192eu
****Notes***
In Lib/Module I see 2 folders /lib/modules/4.17.0-kali1 and /lib/modules/4.17.0-kali3.
Do I need libelf-dev package installed? This was a requirement for Ubuntu to work.