Install pcapy in centos

Source: Internet
Author: User
Previously, for the sake of work, I installed pcapy on my win and thought it was troublesome to configure it. later I tried to install pcapy under centos, and I felt a lot refreshed, I think pcapy is better to use in centos. Installation process: Note: I use centos7, and centos6 may be somewhat different. 1. dependency installation: APythoninterpreter. Versions

Previously, for the sake of work, I installed pcapy on my win and thought it was troublesome to configure it. later I tried to install pcapy under centos, and I felt a lot refreshed, I think pcapy is better to use in centos.

Installation process:

Note: I use centos7, and centos6 may be different.

1. dependency installation:

 

  • A Python interpreter. Versions 2.1.3 and higher.
  • A c ++ compiler. gcc g ++ 2.95, as well as Microsoft Visual Studio 6.0 or MSVC 2003 depending on the Python version.
  • A Libpcap 0.9.3 or newer. Windows users shoshould have installed WinPcap 4.0 or newer.
The above dependencies can be installed with yum: yum install python (usually built-in) yum install python-develyum install gccyum install libpcap and then download pcapy to the site-packages: http://www.coresecurity.com/system/files/pcapy-0.10.6.zip under the python Directory

 

Unzip decompression

Then run setup. py: python setup. py install

Then python import is ready.

Easier than win

 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.