栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

为python 2.7编译libdnet

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

为python 2.7编译libdnet

您阅读自述文件了吗?从http://prdownloads.sourceforge.net/libdnet/libdnet-1.11.tar.gz?download下载源压缩文件,解压缩并参阅自述文件:

Windows 2000/XP---------------For raw Ethernet sending, install the WinPcap driver and DLLs, andextract their developer pack to a build directory:        http://winpcap.polito.it/install/default.htm# XXX - unsupported for now# For tunnel interface support, install the OpenVPN "TAP-Win32 Virtual# Ethernet Adapter" component (their Windows installer will let you# install it alone):##       http://openvpn.sourceforge.net/For firewall support, install HSC's PktFilter service:        http://www.hsc.fr/ressources/outils/pktfilter/index.html.enMost Windows developers should just use the libdnet developer's pack(with MinGW and MSVC++ libraries) instead of building it themselves.But for those who really want to know...To build a MinGW native library (under Cygwin+MinGW):        ./configure && makeTo build a Microsoft Visual C++ native library and Python module(again, under Cygwin+MinGW):        ./configure        cd python && C:/Python23/python.exe setup.py build        cd ../src && lib /out:dnet.lib *.obj

正如您最可能注意到的那样,您将需要Cygwin + MinGW。我不知道您要使用MinGW本机库还是Microsoft Visual C
++本机库。还要注意,您必须使用C:/Python27/python.exe来构建它。

如果您尝试这样做,我想您可能会提出一个具体的问题,您很可能会(但不一定是100%)将其提交一个新问题,如果您遇到编译问题,最好向libdnet的邮件列表询问。



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/668573.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号