Aircrack-ng 源码安装

Airacrak-ng 源码安装


实验环境

root@gnu:/home/kee# uname -a
Linux gnu 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux

安装方法

apt-get install build-essential libssl-dev pkg-config libnl-3-dev libnl-genl-3-dev
wget http://download.aircrack-ng.org/aircrack-ng-1.2-beta3.tar.gz
tar xvf aircrack-ng-1.2-beta3.tar.gz
cd aircrack-ng-1.2-beta3
make install

安装过程

root@gnu:/home/nixawk/share/aircrack-ng-1.2-beta3# make
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
common.mak:85: *** Cannot find development files for any supported version of libnl. install either libnl1 or libnl3..  Stop.
root@gnu:/home/nixawk/share/aircrack-ng-1.2-beta3# make clean
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
common.mak:85: *** Cannot find development files for any supported version of libnl. install either libnl1 or libnl3..  Stop.

下载源码后,解压,在aircrack-ng目录下编译,提示未找到pkg-config,未找到支持版本的libn1。分别安装pkg-configlibn1-3

root@gnu:/home/nixawk/share/aircrack-ng-1.2-beta3# apt-get install pkg-config
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  pkg-config
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 59.5 kB of archives.
After this operation, 172 kB of additional disk space will be used.
Get:1 http://http.debian.net/debian/ wheezy/main pkg-config amd64 0.26-1 [59.5 kB]
Fetched 59.5 kB in 28s (2,111 B/s)    
Selecting previously unselected package pkg-config.
(Reading database ... 102399 files and directories currently installed.)
Unpacking pkg-config (from .../pkg-config_0.26-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up pkg-config (0.26-1) ...

安装libnl3

root@gnu:/home/nixawk/share/aircrack-ng-1.2-beta3# apt-cache search libnl3
libnl-3-200-dbg - debug symbols for libnl3
libnl-3-dev - development library and headers for libnl-3
libnl-3-doc - API documentation for libnl3
root@gnu:/home/nixawk/share/aircrack-ng-1.2-beta3# apt-get install libnl-3-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  libnl3-doc
The following NEW packages will be installed:
  libnl-3-dev
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 46.8 kB of archives.
After this operation, 281 kB of additional disk space will be used.
Get:1 http://http.debian.net/debian/ wheezy/main libnl-3-dev amd64 3.2.7-4 [46.8 kB]
Fetched 46.8 kB in 1s (31.4 kB/s)    
Selecting previously unselected package libnl-3-dev.
(Reading database ... 102411 files and directories currently installed.)
Unpacking libnl-3-dev (from .../libnl-3-dev_3.2.7-4_amd64.deb) ...
Setting up libnl-3-dev (3.2.7-4) ...

继续编译,下面提示/usr/bin/ld:cannot find -lnl-genl-3,意思应该是缺少n1-gen1-3

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值