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