itxx00 / pypcap

Automatically exported from code.google.com/p/pypcap
Other
0 stars 0 forks source link

"couldn't find pcap build or installation directory" #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have installed python-pyrex and libpcap-dev.
I have tried running "make" and "sudo python setup.py config".
I keep getting the following error while trying to install pypcap1.1:
"""
make
python setup.py config 
running config
Traceback (most recent call last):
  File "setup.py", line 101, in <module>
    ext_modules = [ pcap ])
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, 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"
TypeError: exceptions must be old-style classes or derived from BaseException, 
not str
make: *** [all] Error 1
"""

I am trying to install pypcap1.1 using python 2.7.2 and Ubuntu 11.10.

Original issue reported on code.google.com by johnj...@gmail.com on 17 May 2012 at 2:30

GoogleCodeExporter commented 9 years ago
I got the same issue on redhat

Original comment by ravi.genius on 21 Jun 2012 at 12:53

GoogleCodeExporter commented 9 years ago
For build instructions for Fedora see this github ticket: 
https://github.com/hgn/captcp/issues/3 . It will probably work on RedHat as 
well.

Original comment by csir...@gmail.com on 23 Jun 2012 at 8:47

GoogleCodeExporter commented 9 years ago
To resolve this on redhat if you are running on 64 bits its add lib64 to the 
list of libraries that are checked on setup.py.

for sd in ('lib', 'lib64',''):

You will also need to install libpcap-devel.

Original comment by ruirtsan...@gmail.com on 14 Aug 2012 at 5:20

GoogleCodeExporter commented 9 years ago
You may be interested in http://code.google.com/p/pypcap/issues/detail?id=40

Original comment by hell...@gmail.com on 9 Dec 2012 at 12:47