Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1443173
  • 博文数量: 165
  • 博客积分: 2068
  • 博客等级: 上尉
  • 技术积分: 2102
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-27 16:07
文章分类

全部博文(165)

文章存档

2018年(1)

2017年(22)

2016年(9)

2015年(22)

2014年(8)

2013年(25)

2012年(53)

2011年(25)

分类: LINUX

2011-12-30 11:23:05

安装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




阅读(4651) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~