So we will be compiling aircrack-ng from the source.But there are errors, mostly to do with a variable called -Werror in the source. This is what you need to do to compile aircrack-ng without the pesky errors.
Run the following commands(in "Bold") in the terminal.
Step 1: "sudo -s"
Type your password.
Step 2: "apt-get install build-essential"
Step 3: "sudo apt-get install libssl-dev"
Now we have installed the dependencies, we move to our next step that is downloading the source of Aircrack-ng.
Step 4: "wget http://download.aircrack-ng.org/aircrack-ng-0.9.3.tar.gz"
Step 5: "tar -zxvf aircrack-ng-0.9.3.tar.gz"
Step 6: After the download, there will be a file called common.mak in the dirctory downloads/aircrack-ng-1.1 .use your favorite editor to open the file and scroll down till you see the following line.