您的位置:首页 > 其它

ubuntu10.10编译sniffit问题解决办法

2010-12-15 16:07 399 查看
/*ubuntu10.10编译sniffit.0.3.7.beta问题解决办法*/



1. sn_structs.h:70: 错误:声明指定了两个以上的数据类型

解决方法:
找类似下面的
struct snif_mask
{
_32_bit source_ip, destination_ip;
_32_bit short source_port, destination_port;
};

删除short,看到上面倒数2行的 然后 :wq保存退出 。

2. /bin/sh: lex: not found

解决方法:
安装flex:
sudo apt-get install flex



http://www.gnu.org/software/flex/
或者在http://flex.sourceforge.net/ 上下载



3. yacc: Command not found
解决方法:
安装byacc:
sudo apt-get install byacc



4. /usr/bin/ld: cannot find -lpcap

解决方法:
安装libpcap0.8-dev:
sudo apt-get install libpcap0.8-dev
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: