#20 impossible to install pylibpcap-0.6.2

open-invalid
nobody
None
5
2013-12-31
2010-09-10
Anonymous
No

# python setup.py install
running install
running build
running build_ext
building '_pcapmodule' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_COBJECT_TYPES -I/usr/local/include/python2.7 -c pcap.c -o build/temp.linux-i686-2.7/pcap.o
pcap.c:2527:18: error: pcap.h: No such file or directory
In file included from pcap.c:2528:
pypcap.h:24: error: expected specifier-qualifier-list before ‘pcap_t’
pypcap.h:72: error: expected ‘)’ before ‘*’ token
pcap.c: In function ‘init_pcap’:
pcap.c:4266: warning: implicit declaration of function ‘pcap_lib_version’
pcap.c:4266: warning: passing argument 3 of ‘PyModule_AddStringConstant’ makes pointer from integer without a cast
error: command 'gcc' failed with exit status 1

Discussion

  • Wim Lewis
    Wim Lewis
    2012-01-07

    • status: open --> open-invalid
     
  • Wim Lewis
    Wim Lewis
    2012-01-07

    > pcap.c:2527:18: error: pcap.h: No such file or directory

    This looks like you either don't have libpcap, or it's installed in an unusual location.