使用'make'命令时出现错误(在Ubuntu 12.04上安装aircrack-ng)


13

我遵循了这些指示。我编辑了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

我现在该怎么办?

Answers:


30

该错误表明您没有ssl头文件。因此,只需安装它们。

sudo apt-get install libssl-dev

编译时最重要的是获取库的-dev软件包。
m3nda'2

5

下载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

第一次:它将构建*.solib文件。

第二个,它将构建包含*.h文件。

很有用


3
预建库已经可以在仓库
超光速粒子

您的解决方案可能会奏效,它只是使用方式比编译和从源头维护它倾向于少些麻烦
der_michael
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.