Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jun 14, 2015 · 5 comments
Open

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

GoogleCodeExporter opened this issue Jun 14, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

I got the same issue on redhat

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

@jue-jiang
Copy link

In ubuntu 14.04, pypcap can be installed directly by sudo apt-get install python-pypcap.
https://www.howtoinstall.co/en/ubuntu/precise/python-pypcap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants