hostapd 编译
来源:互联网 发布:php 伪静态 编辑:程序博客网 时间:2024/04/28 00:22
http://os.51cto.com/art/201311/418082.htm
1、下载hostapd软件包,访问http://hostap.epitest.fi/hostapd/找到hostpad-2.0.tar.gz并点击进行下载,也可以在在终端模式下使用命令wget http://hostap.epitest.fi/releases/hostapd-2.0.tar.gz直接进行下载,之后进入下载目录使用tar -zxvf hostapd-2.0.tar.gz进行解压缩操作,之后系统会在当前目录中生成hostapd-2.0目录。
2、安装编译,进入hostapd-2.0/hostapd目录中,首先使用cp defconfig .config创建编译时需要的配置文件,使用vi .config编辑该文件并找到CONFIG_IEEE80211N=y 行,将前面的注释"#"删除,使hostpad支持80211N协议。使用make进行编译,期间将报如下错误:
- ../src/drivers/driver_nl80211.c:19:31:fatalerror:netlink/genl/genl.h: 没有那个文件或目录
这时需要使用命令apt-get install libnl-dev来安装需要的支持库头文件,之后再次执行make命令,系统将报如下错误:
2.../src/crypto/tls_openssl.c:17:25: fatal error: openssl/ssl.h: 没有那个文件或目录
这时需要使用命令apt-get install libssl-dev来安装需要的openssl支持库头文件,之后再次执行make命令,系统将顺利编译hostapd。
3.
这时需要apt-get -f install来安装需要的openssl支持的头文件,之后再次执行make命令,系统将顺利编译hostapd。
之后使用命令make install进行安装,系统将会自动将最新版的hostapd安装在目录/usr/local/bin中。在终端中执行/usr/local/bin/hostapd -v,系统如果能之后使用命令make install进行安装,系统将会自动将最新版的hostapd安装在目录/usr/local/bin中。在终端中执行/usr/local/bin/hostapd -v,系统如果能返回如下信息:
- hostapd v2.0
- User space daemon for IEEE 802.11 AP management,
- IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
- Copyright (c) 2002-2012, Jouni Malinen <j@w1.fi> and contributors
说明hostapd2.0已经顺利安装成功。
启动命令:sudo ./hostapd -dd hostapd.conf or sudo ./hostapd -dd hostapd.conf
- 编译hostapd
- hostapd 编译
- 交叉编译hostapd
- 交叉编译 hostapd
- 交叉编译hostapd
- 编译hostapd笔记
- Ubuntu上编译hostapd
- Ubuntu上编译hostapd
- 交叉编译hostapd的方法
- hostapd
- hostapd
- hostapd
- hostapd
- hostapd
- hostapd
- Hostapd
- Hostapd
- hostapd交叉编译及测试脚本
- x86+NFV 中国电信成功构建中国首个IP智能管道
- DTP模型及中间件的作用
- Redis笔记(三)添加密码并修改默认端口后的主从同步
- virtualbox 不能为虚拟电脑 打开一个新任务
- 查询自动补全
- hostapd 编译
- 【Servlet】利用JSTL表达式把Servlet从数据库读出的数据推向前台与javax.el.PropertyNotFoundException的错误
- 黑马程序员——Java基础---类加载器
- UIView 简介(一)ios 显示图层的层次框架
- BI与BA的区别及联系 .
- kafka api 开发常忽略的事
- Matcher: find vs matches
- 让Static控件活起来
- spring 3 源代码构建