Makefile:1037:目标“../src/ap/beacon.o”的配方失败

Makefile:1037:目标“../src/ap/beacon.o”的配方失败

我正在 kali linux Rolling 2017.2 上安装 hosatpd-wpe,如下所示:

wget https://raw.githubusercontent.com/aircrack-ng/aircrack-ng/master/patches/wpe/hostapd-wpe/hostapd-wpe.patch 
wget https://w1.fi/releases/hostapd-2.9.tar.gz 
tar -zxf hostapd-2.9.tar.gz 
cd hostapd-2.9 patch -p1 < ../hostapd-wpe.patch 
cd hostapd

root@kali:/hostapd-2.6/hostapd# make

输入后make我收到以下错误消息:

../src/ap/beacon.c: In function 'handle_probe_req':
../src/ap/beacon.c: 820:9:error: 'wpe_conf' undeclared (first use in this function); did you mean 'wps_config'?
    If (wpe_conf.wpe_enable_karma && elems.ssid_len < 0) {
        Wpe_config
../src/ap/beacon.c:820:9:note: each undeclared identifier is reported only once for each function it appears in
Makefile: 1037: recipe for target '../src/ap/beacon.o' failed
Make: *** [../src/ap/beacon.o] Error 1

你能让我知道如何解决这个问题吗?请注意,我是一名网络工程师,而不是程序员,所以我需要一种简单的方法来解决它。

谢谢

答案1

只需按照以下说明进行操作就会容易得多https://www.kali.org/tools/hostapd-wpe/并安装预构建的包

apt update
apt install hostapd-wpe

相关内容