Chinaunix首页 | 论坛 | 博客
  • 博客访问: 568279
  • 博文数量: 155
  • 博客积分: 7055
  • 博客等级: 少将
  • 技术积分: 1700
  • 用 户 组: 普通用户
  • 注册时间: 2004-11-22 11:40
文章分类

全部博文(155)

文章存档

2016年(1)

2011年(2)

2010年(1)

2009年(2)

2008年(9)

2007年(39)

2006年(58)

2005年(38)

2004年(5)

我的朋友

分类:

2005-09-15 15:34:45

下载libpcap-0.8.3.tar.gz,tcpdump-3.8.3.tar.gz
有mips-gcc编译器,并设置好了PATH

编译pcap:         ./configure --host=mips --with-pcap=linux & make & make install
// 开始不知道--with-pcap要填什么,就写了个null。结果运行tcpdump抱怨live packet capture not supported on this system
    ./configure运行会出错:cannot determine linux version when cross-compiling,我修改了configure,让它不要出错了!

编译tcpdump:   
./configure --host=mips
修改Makefile里二行,                                                 
INCLS = -I. -I./../libpcap-0.8.3  -I$(srcdir)/missing -I/usr/local/include
LDFLAGS = -L/usr/local/lib
然后make , 生成的tcpdump在MIPS平台上就可以用了!
   


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