![使用“make”命令时出现错误(在 Ubuntu 12.04 上安装 aircrack-ng)](https://linux22.com/image/817884/%E4%BD%BF%E7%94%A8%E2%80%9Cmake%E2%80%9D%E5%91%BD%E4%BB%A4%E6%97%B6%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF%EF%BC%88%E5%9C%A8%20Ubuntu%2012.04%20%E4%B8%8A%E5%AE%89%E8%A3%85%20aircrack-ng%EF%BC%89.png)
我跟着这些说明。我common.mak
成功编辑了文件,但运行时make
出现此错误:
mohd-arafat-hossain@TUD:~/aircrack-ng-1.1$ make
make -C src all
make[1]: Entering directory `/home/mohd-arafat-hossain/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/home/mohd-arafat-hossain/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/mohd-arafat-hossain/aircrack-ng-1.1/src/osdep'
make[3]: `.os.Linux' is up to date.
make[3]: Leaving directory `/home/mohd-arafat-hossain/aircrack-ng-1.1/src/osdep'
make[2]: Leaving directory `/home/mohd-arafat-hossain/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o aircrack-ng.o aircrack-ng.c
In file included from aircrack-ng.c:65:0:
crypto.h:12:26: fatal error: openssl/hmac.h: No such file or directory
compilation terminated.
make[1]: *** [aircrack-ng.o] Error 1
make[1]: Leaving directory `/home/mohd-arafat-hossain/aircrack-ng-1.1/src'
make: *** [all] Error 2
我现在该怎么办?
答案1
错误提示您没有 ssl 头文件。因此只需安装它们即可。
sudo apt-get install libssl-dev
答案2
下载openssl-1.0.1c.tar.gz
并构建两次。
./config --prefix=/usr/local --openssldir=/usr/local/ssl
make && make install
./config shared --prefix=/usr/local --openssldir=/usr/local/ssl
make clean
make && make install
第一次:它将构建*.so
lib文件。
第二,它将构建包含*.h
文件。
它很有用。