This question already has an answer here:

XXXXX@XXXXX:~/aircrack-ng-1.2-rc2/src$ sudo make
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3   -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude  wpaclean.o osdep/radiotap/radiotap.o -o wpaclean -Losdep -losdep -lnl-genl-3 -lnl-3  
/usr/bin/ld: cannot find -lnl-genl-3
collect2: error: ld returned 1 exit status
make: *** [wpaclean] Error 1

marked as duplicate by Eric Carvalho, Ravan, Charles Green, hg8, user364819 Nov 26 '15 at 17:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You need to install the missing dependency libnl-genl-3-dev.

Install the library with the following command:

sudo apt-get install libnl-genl-3-dev

Try sudo make again after installing the library.

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