在用Cygwin在windows下编译Wireshark报错,提示如下
configure: error: Header file pcap.h not found; if you installed libpcap
from source, did you also do "make install-incl", and if you installed a
binary package of libpcap, is there also a developer's package of libpcap,
and did you also install that package?
似乎是我的Cygwin没有安装libpcap,但是我在Cygwin里面找了半天也没有找到libpcap的安装选择,怎么在Cygwin中安装libpcap啊?

解决方案 »

  1.   

    是不是要下载libpcap的安装包,放到Cygwin里面编译安装啊?Cygwin是否自身不带libpcap?如果Cygwin有在安装时应该怎么选?
    我下载了一个libpcap-1.0.0.tar.gz的源文件,在Cygwin里面编译报了很多.h文件的错,如下:
    $ ./configure
    checking build system type... i686-pc-cygwin
    checking host system type... i686-pc-cygwin
    checking target system type... i686-pc-cygwin
    checking for gcc... gcc
    checking for C compiler default output file name... a.exe
    checking whether the C compiler works... yes
    ... ... ... 
    checking for _FILE_OFFSET_BITS value needed for large files... no
    checking for _LARGEFILE_SOURCE value needed for large files... no
    checking sys/ioccom.h usability... no
    checking sys/ioccom.h presence... no
    checking for sys/ioccom.h... no
    checking sys/sockio.h usability... no
    checking sys/sockio.h presence... no
    checking for sys/sockio.h... no
    checking for net/pfvar.h... no
    checking for netinet/if_ether.h... no
    configure: Rechecking with some additional includes
    checking for netinet/if_ether.h... no
    checking for ANSI ioctl definitions... no
    configure: error: see the INSTALL for more info
    那位高手指导一下啊
      

  2.   

    是不是要下载libpcap的安装包,放到Cygwin里面编译安装啊?Cygwin是否自身不带libpcap?如果Cygwin有在安装时应该怎么选?
    我下载了一个libpcap-1.0.0.tar.gz的源文件,在Cygwin里面编译报了很多.h文件的错,如下:
    $ ./configure
    checking build system type... i686-pc-cygwin
    checking host system type... i686-pc-cygwin
    checking target system type... i686-pc-cygwin
    checking for gcc... gcc
    checking for C compiler default output file name... a.exe
    checking whether the C compiler works... yes
    ... ... ... 
    checking for _FILE_OFFSET_BITS value needed for large files... no
    checking for _LARGEFILE_SOURCE value needed for large files... no
    checking sys/ioccom.h usability... no
    checking sys/ioccom.h presence... no
    checking for sys/ioccom.h... no
    checking sys/sockio.h usability... no
    checking sys/sockio.h presence... no
    checking for sys/sockio.h... no
    checking for net/pfvar.h... no
    checking for netinet/if_ether.h... no
    configure: Rechecking with some additional includes
    checking for netinet/if_ether.h... no
    checking for ANSI ioctl definitions... no
    configure: error: see the INSTALL for more info
    那位高手指导一下啊
      

  3.   

    netinet/if_ether.h
    这个是libc6里的,在cygwin里没有,下载个libc6的软件包应该没有问题.
    应该是少包........我在研究研究,然后把这被人遗弃的提问给补充下.