jbittel / httpry

HTTP logging and information retrieval tool

Home Page:dumpsterventures.com/jason/httpry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make failing

rharing opened this issue · comments

running make fails on:
~/programs/httpry-0.1.8 ⌚ 12:14:21
$ make
gcc -Wall -O3 -funroll-loops -I/usr/include/pcap -I/usr/local/include/pcap -o httpry httpry.c format.c methods.c utility.c rate.c -lpcap -lm -pthread
httpry.c:14:18: fatal error: pcap.h: No such file or directory
compilation terminated.
Makefile:21: recipe for target 'httpry' failed
make: *** [httpry] Error 1

running linux mint:4.4.0-66-generic #87-Ubuntu SMP Fri Mar 3 15:29:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
using the downloaded zip, same error on the git version though

httpry git:(master) make     
gcc -Wall -O3 -funroll-loops -I/usr/include/pcap -I/usr/local/include/pcap -o httpry httpry.c format.c methods.c utility.c rate.c -lpcap -lm -pthread
httpry.c:15:10: fatal error: pcap.h: No such file or directory
   15 | #include <pcap.h>
      |          ^~~~~~~~
compilation terminated.
make: *** [Makefile:21: httpry] Error 1

➜ httpry git:(master) make
gcc -Wall -O3 -funroll-loops -I/usr/include/pcap -I/usr/local/include/pcap -o httpry httpry.c format.c methods.c utility.c rate.c -lpcap -lm -pthread
httpry.c:15:10: fatal error: pcap.h: No such file or directory
15 | #include <pcap.h>
| ^~~~~~~~
compilation terminated.
make: *** [Makefile:21: httpry] Error 1

You should install libpcap. For example via ubuntu package manager: sudo apt-get install libpcap-dev
Then try to make and make install again