Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I followed these instructions. I edited the common.mak file successfully and when I ran make I get this error:

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

What am I supposed to do now?

share|improve this question

3 Answers 3

up vote 12 down vote accepted

The error says you don't have ssl header files. So just install them.

sudo apt-get install libssl-dev
share|improve this answer
Thanks for the assist :) – Mohd Arafat Hossain May 11 '12 at 15:09
Thanks man work perfect on my 12.04 .03 LTS server – bemonolit Dec 7 '13 at 19:55
When compiling the most important is get the -dev packages of the libraries. – erm3nda Feb 3 at 6:17

Download openssl-1.0.1c.tar.gz and build it twice.

./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

In the first time:it will build the *.so lib file.

The second ,it will build the include *.h file.

It's useful.

share|improve this answer
Pre built library is already available in repository – Tachyons Oct 7 '12 at 11:05

I did it like this, you can see it in my tube video

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Eliah Kagan Oct 7 '12 at 12:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.