设置气隙时出错

设置气隙时出错

我在设置 aircrack 时遇到了这些错误

chrisdabeer@localhost:~/aircrack-ng-1.1$ make install

make -C src install

make[1]: Entering directory `/home/chrisdabeer/aircrack-ng-1.1/src'

make -C osdep

make[2]: Entering directory `/home/chrisdabeer/aircrack-ng-1.1/src/osdep'
Building for Linux

make[3]: Entering directory `/home/chrisdabeer/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/chrisdabeer/aircrack-ng-1.1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/chrisdabeer/aircrack-ng-1.1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/home/chrisdabeer/aircrack-ng-1.1/src'
make: *** [install] Error 2

答案1

假设你不想要包管理器中可用的版本,sudo apt-get install aircrack-ng你可以查看此链接,看看是否能帮助你编译

http://www.aircrack-ng.org/doku.php?id=install_aircrack

下载依赖项:

sudo apt-get install build-essential libssl-dev sqlite

下载 tarball、提取、编译并安装:

wget http://download.aircrack-ng.org/aircrack-ng-1.2-rc1.tar.gz
tar -zxvf aircrack-ng-1.2-rc1.tar.gz
cd aircrack-ng-1.2-rc1
make
sudo make install

我认为 apt-get 提供的版本(假设 14.04 是 1:1.1-6,但如果你编译它,你将获得 aircrack-ng-1.2-rc1)

相关内容