
Building aircrack-ng on Snow Leopard - 10.6
Obviously, you need Xcode installed. However, you don't need gmake or sqlite like aircrack-ng's guide says.
Open Terminal, run:
Code:
svn co http://trac.aircrack-ng.org/svn/trunk/ aircrack-ng
Now, you need to edit common.mak to build for a 32-bit architecture using 10.5 headers, and have it use gcc-4.0 instead of 4.2.
Find this line:
Code:
CC = $(TOOL_PREFIX)gcc
and replace with:
Code:
CC = $(TOOL_PREFIX)gcc-4.0
Then find this line:
Code:
CFLAGS ?= -g -W -Wall -Werror -O3 -Wno-strict-aliasing
and replace with:
Code:
CFLAGS ?= -g -W -Wall -Werror -O3 -Wno-strict-aliasing -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
Go back to Terminal and:
Code:
cd aircrack-ng
make
sudo make install
Look at the make install output to find out where stuff got placed; the tools you'll likely use are in /usr/local/bin/
Hope this helps somebody!