当我输入 make
make[1]: Entering directory '/home/m7moudl3i/aircrack-ng-1.2-rc2/src'
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o aircrack-ng.o aircrack-ng.c
In file included from aircrack-ng.c:65:0:
crypto.h:42:26: fatal error: openssl/hmac.h: No such file or directory
#include <openssl/hmac.h>
^
compilation terminated.
<builtin>: recipe for target 'aircrack-ng.o' failed
make[1]: *** [aircrack-ng.o] Error 1
make[1]: Leaving directory '/home/m7moudl3i/aircrack-ng-1.2-rc2/src'
Makefile:25: recipe for target 'all' failed
make: *** [all] Error 2
答案1
如果你读过要求对于在 Linux 上从源代码构建aircrack-ng
,你可以看到它需要libssl-dev
。因此使用以下命令安装它:
sudo apt-get install libssl-dev