libnids libpcap libnet 安装
(2010-03-21 10:47:46)
标签:
libnids
libpcap
libnet
libnids-dev
libpcap-dev
libnet1-dev
it
安装libpcap出现:
1:error: Your operating system's lex is insufficient to
compile
libpcap. ex is a lex replacement that has many
advantages, including
being able to compile libpcap.
需要更新lex
执行命令:sudo apt-get install flex
2:出现错误
yacc -d grammar.y
make: yacc:命令未找到
make: *** [grammar.c] 错误 127
需要安装yacc
inux下是用flex和bison来分别代替lex和yacc的,安装直接使用命令:
sudo apt-get install bison
*************************************
安装libnet:
1:error: C++ preprocessor "/lib/cpp" fails sanity check
安装 g++ 编译器 (一款linux、unix等操作系统下的C++编译器
使用命令:sudo apt-get install g++
可能出现libnet的版本不符合要求
***************************************
安装libnids:
1:checking for GLIB... configure: error: Package requirements
(glib-2.0 >= 2.2.0) were not met.
直接安装命令:sudo apt-get install "libglib2.0-dev"
编译程序是发生错误:
undefined reference to `pcap_parse'
不知道是什么原因说没有安装libpcap.
安装到最后才发现,原来ubuntu里提供了这三个包,只要运行下面三个命令即可了!(悲剧的人阿!)
原来是自己没有安装开发包,
sudo apt-get install libpcap-dev
sudo apt-get install libnids-dev
sudo apt-get install libnet1-dev
编译获取http的程序时发现无法截取无线网络的数据包。
不管怎么样把,经过一个漫长的安装,终于成功了!
分享:
喜欢
0
赠金笔
加载中,请稍候......
评论加载中,请稍候...
发评论
登录名: 密码: 找回密码 注册记住登录状态
昵 称:
评论并转载此博文
发评论
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。