Compiling mdk3 on Raspberry Pi Raspberian. Tested on the on the stock upgraded Raspbian distro kernel 3.6.11+.
After you get aircrack-ng suite installed and working, this is a no-brainer.
tar -xvjf mdk3-v6.tar.bz2
then move the mdk3 file somewhere where the shell can pick it up like