Netexpert FAQ 网络分析专家学习建议入口 @netexpert成员申请指南
网络分析时代 netexpert积分规则的说明 Netis招贤纳士(2008年11月22日更新)
发新话题
打印

ethereal编译环境搭建经验

ethereal编译环境搭建经验

第一步:安装cygwin
The setup will ask you for some settings, the defaults should usually work well for a first start. At the "Select Packages" page, you'll need to select some additional packages, which are not installed by default. Navigate to the required Category/Package row and click on the "Skip" item in the "New" column so it shows a version number for:
确保以下模块被选择:
Archive/unzip

Devel/bison

Devel/flex

Interpreters/perl

Interpreters/python

Utils/patch

Web/wget


第二步:安装VC6编译环境:
After clicking the Next button several times, the setup will then download and install the selected packages (this may take a while).

注意:
vcvars32.bat  : 运行nmake前设置vc环境


第三步,PATH设置
vc6:
C:\Program Files\Microsoft Visual Studio\VC98\Bin

cygwin:
X:\cygwin\bin加到PATH的

dll:
ethereal的运行dll目录加入path.编译后产生的dll.有利于编译后的ethereal运行减少麻烦。


第四步:源码操作配置
你可以用
nmake -f Makefile.nmake verify_tools
确认这些工具到位了。
如有一项提示不对头,就继续修正,直至全部到位。

运行库目录需要在源码的config.nmake中设置。ETHEREAL_LIBS=e:\temp\ethereal-win32-libs

至于下载库,也不用手工去下,执行   
nmake -f Makefile.nmake setup
即可自动下载。


第五步, 开始编译
Then you should cleanup any intermediate files, which are shipped for convenience of Unix users, by typing inside the command line (cmd.exe):

> nmake -f Makefile.nmake distclean

After doing this, typing inside the command line (cmd.exe):

> nmake -f Makefile.nmake all

will start the whole Ethereal build process.
本帖最近评分记录
  • scz 威望 +15 2006-7-25 10:42

TOP

呵呵
之前编译ethereal也遇到了很多问题
搞定后也总结了
和楼主差不多
补充一下:
但在编译ethereal-0.99.0的时候会遇到找不到unistd.h的问题
需要在include下建一个这样的空文件才能编译成功
编译ethereal-0.10.13不会存在这个问题
慢慢在熟悉ethereal
希望有机会可以多和楼主交流
一起进步
谢谢
hiyizhiyu◎hotmail.com

TOP

至于下载库,也不用手工去下,执行   
nmake -f Makefile.nmake setup
即可自动下载。



但是我的为什么下载失败?
附件: 您所在的用户组无法下载或查看附件

TOP

放在vc地下可以执行吗?

TOP

".....
运行库目录需要在源码的config.nmake中设置。ETHEREAL_LIBS=e:\temp\ethereal-win32-libs
........
这里的 e:\temp\ethereal-win32-libs 是怎么确定的?

我也遇到上图的错误,只是错误原因为:  read error (connection reset by peer) in headers,从而导致反复连接服务器,一直都awaiting response....

[ 本帖最后由 pctj 于 2006-10-31 17:58 编辑 ]

TOP

谢谢
我看过了
[img]http://www.hnhxd.com/1.gif[img]

TOP

发新话题
版块跳转