couldn’t find pcap build or installation directory

作者: admin 分类: python 发布时间: 2011-11-09 14:14 ė 6 没有评论

[root@localhost pypcap-1.1]# python setup.py config
running config
Traceback (most recent call last):
File “setup.py”, line 101, in ?
ext_modules = [ pcap ])
File “/usr/lib/python2.4/distutils/core.py”, line 149, in setup
dist.run_commands()
File “/usr/lib/python2.4/distutils/dist.py”, line 946, in run_commands
self.run_command(cmd)
File “/usr/lib/python2.4/distutils/dist.py”, line 966, in run_command
cmd_obj.run()
File “setup.py”, line 67, in run
cPickle.dump(self._pcap_config([ self.with_pcap ]),
File “setup.py”, line 63, in _pcap_config
raise “couldn’t find pcap build or installation directory”
couldn’t find pcap build or installation directory

解决办法:yum install libpcap-devel

转载注明(LINUXQQ)

本文出自 小Q,转载时请注明出处及相应链接。

本文永久链接: http://www.linuxqq.com/archives/799.html

0
更多
Ɣ回顶部