can't install aircrack-ng [SOLVED]

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
User avatar
minty33
Level 2
Level 2
Posts: 93
Joined: Sat Oct 15, 2011 12:17 am
Contact:

can't install aircrack-ng [SOLVED]

Post by minty33 »

i attache the errors i get can anyone tell me the problem

========
minty-Satellite-L355 aircrack-ng-1.1 # make sqlite=true airpcap=true unstable=true
make -C src all
make[1]: Entering directory `/opt/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/opt/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/opt/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -I/usr/local/include -DHAVE_SQLITE -fPIC -I.. -DHAVE_AIRPCAP -I../../../developers/Airpcap_Devpack/include -c -o osdep.o osdep.c
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -I/usr/local/include -DHAVE_SQLITE -fPIC -I.. -DHAVE_AIRPCAP -I../../../developers/Airpcap_Devpack/include -c -o network.o network.c
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -I/usr/local/include -DHAVE_SQLITE -fPIC -I.. -DHAVE_AIRPCAP -I../../../developers/Airpcap_Devpack/include -c -o linux.o linux.c
linux.c: In function ‘is_ndiswrapper’:
linux.c:165:17: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_rate’:
linux.c:334:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_channel’:
linux.c:807:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_freq’:
linux.c:896:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘set_monitor’:
linux.c:1022:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘do_linux_open’:
linux.c:1366:12: error: variable ‘unused_str’ set but not used [-Werror=unused-but-set-variable]
linux.c:1352:15: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘get_battery_state’:
linux.c:1982:35: error: variable ‘current’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/opt/aircrack-ng-1.1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/aircrack-ng-1.1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/opt/aircrack-ng-1.1/src'
make: *** [all] Error 2
minty-Satellite-L355 aircrack-ng-1.1 # make sqlite=true airpcap=true unstable=true install
make -C src install
make[1]: Entering directory `/opt/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/opt/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/opt/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -I/usr/local/include -DHAVE_SQLITE -fPIC -I.. -DHAVE_AIRPCAP -I../../../developers/Airpcap_Devpack/include -c -o linux.o linux.c
linux.c: In function ‘is_ndiswrapper’:
linux.c:165:17: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_rate’:
linux.c:334:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_channel’:
linux.c:807:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_freq’:
linux.c:896:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘set_monitor’:
linux.c:1022:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘do_linux_open’:
linux.c:1366:12: error: variable ‘unused_str’ set but not used [-Werror=unused-but-set-variable]
linux.c:1352:15: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘get_battery_state’:
linux.c:1982:35: error: variable ‘current’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/opt/aircrack-ng-1.1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/aircrack-ng-1.1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/opt/aircrack-ng-1.1/src'
make: *** [install] Error 2
We all pay for life with death so everything in between should be free. - Bill Hicks
User avatar
minty33
Level 2
Level 2
Posts: 93
Joined: Sat Oct 15, 2011 12:17 am
Contact:

Re: can't install aircrack-ng [SOLVED]

Post by minty33 »

I found my own answer but figured i'd post it iin case others have same problem

first this isn't part of the error but needs to happen prior to nstalling aircrack-ng

apt-get install build-essential
apt-get install libssl-dev

---now gow to directory you unpacked aircrack into and edit the common.mak file and remove the "-werror" text. I think it's around line 70 or so (just the part that says -werror)
you can do this with nano or change permissions on the file and edit with gedit so you can find "-werror" easier. it's up to you
anyway after that make and make install work. to use it though you need to make sure you got a driver or patch that goes into monitor mode and has packet injection. that you have to do yourself by lsmod checking your wireless driver and its chipset then look it up and if it doesn't have these features already then find the appropriate driver. that info is on aircrack's page.

sorry if somewhat offtopic post

if anyone is wondering why i posted here and not on aircrack's forum it's because when i logged in it banned me for sql injection which i didnn't do but it said it may be a pluggin in firefox as well. I use fireclam and had caffeine at the time. has anyone ever have something like that happen because of a pluggin.
i know i was banned because it told me so and plus it blocks me every time i go there with a "503 error resource unavailable". but if i use a proxy i can access it. weird huh.
We all pay for life with death so everything in between should be free. - Bill Hicks
Viricide
Level 1
Level 1
Posts: 2
Joined: Thu Aug 16, 2012 1:54 am

Re: can't install aircrack-ng [SOLVED]

Post by Viricide »

Thanks, I needed that.
nitestick
Level 1
Level 1
Posts: 1
Joined: Thu Sep 06, 2012 6:58 pm

Re: can't install aircrack-ng [SOLVED]

Post by nitestick »

Thanks a million for the straightforward solution, I resorted to source after issues with the repos only to find that didn't work either!
Post Reply

Return to “Software & Applications”