I cannot install pcap package under Windows 7 (64 bit). Anybody know how to do that?
Error message if I run "cabal install pcap":
cabal.exe: Missing dependency on a foreign library:
- Missing (or bad) header file: pcap.h
- Missing C library: pcap
I downloaded WinPcap 4.1.2 Developers Pack from here: http://www.winpcap.org/devel.htm
Installed MinGW/MSYS from scratch. Tried both: prepackaged GHC 7-6.2 (ghc-7.6.2-x86_64-unknown-mingw32.tar.bz2) and compiled it myself under MinGW/MSYS.
There seems to be multiple problems:
When I provide include path to pcap.h (--extra-include-dirs), I can do "cabal configure" successfully, but it fails on "cabal build" with "netinet/in.h" not found.
If I install netinet/in.h by running under MSYS "mingw-get install msys-core-dev", then I'm getting tons of different type already defined messages.
WinPCap Developers Pack do not have libpcap.a (it has libwpcap.a). And it looks like there is no 64 bit version of it. Do I need to compile it myself?
I would appreciate if anybody can suggest how such situations normally handled for cabal packages under Windows.