# Suricata unable to find pcap.h file while compiling in windows

**URL:** <https://forum.suricata.io/t/suricata-unable-to-find-pcap-h-file-while-compiling-in-windows/3248>\
**Category:** Help\
**Tags:** windows, suricata\
**Created:** [February 21, 2023, 6:04am UTC](https://forum.suricata.io/t/suricata-unable-to-find-pcap-h-file-while-compiling-in-windows/3248 "2023-02-21T06:04:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prateek](https://avatars.discourse-cdn.com/v4/letter/p/ee7513/32.png) [@Prateek](https://forum.suricata.io/u/Prateek)\
**Post date:** [February 21, 2023, 6:04am UTC](https://forum.suricata.io/t/suricata-unable-to-find-pcap-h-file-while-compiling-in-windows/3248/1 "2023-02-21T06:04:45Z")

</div>

Documentation for suricata windows compile: [https://redmine.openinfosecfoundation.org/attachments/download/1175/SuricataWinInstallationGuide\_v1.4.3.pdf](https://redmine.openinfosecfoundation.org/attachments/download/1175/SuricataWinInstallationGuide_v1.4.3.pdf)

I have installed all the dependencies as mentioned in the documentation. Cloned the files.

To install libpcap, I followed the below steps:

1. Installed the winpcap installer: [WinPcap · Download](http://www.winpcap.org/install/default.htm)
2. Downloaded the Development pack as mentioned in the document: [WinPcap · Developer Resources](http://www.winpcap.org/devel.htm)
3. Copied all the headers and include files from development pack to the location mentioned in the documentation.

When I run the below command, I get the error: “ **configure: error: pcap.h not found** ”:

./configure --enable-luajit --enable-pie --enable-geoip --disable-gccmarch-native --with-libnss-libraries=/usr/lib --with-libnss-includes=/usr/include/nss/ --with-libnspr-libraries=/usr/lib --with-libnspr-includes=/usr/include/nspr

Below is the attachment for the same:  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/suricata/original/2X/6/65ac4b675daea25d1b460abe91ea8a7063ddf334.png)
