我想aircrack-ng
在我的 Ubuntu 12.04 上安装工具,但是在安装过程中我发现错误,当我输入命令 make 时,我得到了这个“
nosha@nosha-Inspiron-N4050:~/aircrack-ng-1.1$ make
make -C src all
make[1]: Entering directory `/home/nosha/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/home/nosha/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/nosha/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o linux.o linux.c
linux.c: In function ‘is_ndiswrapper’:
linux.c:165:17: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_rate’:
linux.c:334:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_channel’:
linux.c:807:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_freq’:
linux.c:896:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘set_monitor’:
linux.c:1022:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘do_linux_open’:
linux.c:1366:12: error: variable ‘unused_str’ set but not used [-Werror=unused-but-set-variable]
linux.c:1352:15: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘get_battery_state’:
linux.c:1982:35: error: variable ‘current’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/home/nosha/aircrack-ng-1.1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/nosha/aircrack-ng-1.1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/home/nosha/aircrack-ng-1.1/src'
make: *** [all] Error 2
答案1
在 Ubuntu 12.04 上安装 Aircrack-ng 最近的 ubuntu 12.04 从其存储库中删除了 aircrack-ng。因此,这里有一个简单的分步指南,可帮助您重新安装它
apt-get 安装 build-essential libssl-dev wgethttp://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz tar -zxvf aircrack-ng-1.1.tar.gz cd aircrack-ng-1.1 gedit common.mak
更换线路
CFLAGS ?= -g -W -Wall -Werror -O3
到:
CFLAGS ?= -g -W -Wall -O3
然后保存并关闭gedit
制作 sudo make install
欲了解更多信息,请访问无法安装 aircrack-ng