Created
September 4, 2018 04:52
-
-
Save aduquet/9d941a3b120549b83feaf871767158c7 to your computer and use it in GitHub Desktop.
problem installing pcapy libs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was installing pcapy, but outgoing notifications like this : | |
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] | |
pcapdumper.cc:11:18: fatal error: pcap.h: No such file or directory | |
#include | |
^ | |
compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 | |
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] | |
pcapdumper.cc:11:18: fatal error: pcap.h: No such file or directory | |
#include | |
^ | |
compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 | |
Installing the libraries, libpcap-dev & libpq-dev solved the problem | |
For Python 2.x use: | |
$ sudo apt-get install python-dev | |
For Python 2.7 use: | |
$ sudo apt-get install libffi-dev | |
For Python 3.x use: | |
$ sudo apt-get install python3-dev | |
For Python 3.4 use: | |
$ sudo apt-get install python3.4-dev | |
For Python 3.5 use: | |
$ sudo apt-get install python3.5-dev | |
For Python 3.6 use: | |
$ sudo apt-get install python3.6-dev | |
---------------------- | |
Some time is just install | |
sudo apt-get install libpcap-dev libpq-dev | |
I will hope that the above works! Good Luck! | |
kind regards! | |
Aleja :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment