When I put the
./configure command in my Cygwin terminal to compile a source code program , I got this error :
ERROR! Libpcap library/headers not found.
TCPDUMP/LIBPCAP public repository is a good place to fetch one
if libpcap library is installed, use the --with-libpcap-* options
to specify pathes to include and library files locations.
So , because I have windows xp as an operating system , I downloaded winpcap from this link :
WinPcap · Developer Resources
I extracted it to Cygwin directory which is C:\cygwin , then followed this link to configure winpcap with cygwin :
help installing libpcap on cygwin - Stack Overflow
In the second link , someone talked about installing some libraries :
"
- Be sure you have installed Winpcap libraries and that they are in your path by typing:
which packet.dll which wpcap.dll
because I do not have both dll , I downloaded both of them from this link :
wpcap.dll download missing file - DllDump
then put them in C:\WINDOWS\system32 .Moreover , I did exactly what second link said :
- Copy libraries like this:
- WpdPack\Lib\libpacket.a to cygwin\lib\
- WpdPack\Lib\libwpcap.a to cygwin\lib\
- Create a folder cygwin\usr\include\pcap\
- Copy all headers from WpdPack\Include to cygwin\usr\include\winpcap\
- Be sure you have installed Winpcap libraries and that they are in your path by typing:
which packet.dll which wpcap.dll
But when I followed the rest which is :
Building example using Cygwin
Open a cygwin prompt to WpdPack\Examples-pcap\basic_dump\ and execute:
basic_dump:
and tried to execute the basic_dump, basic_dump_ex and iflist commands , I got basic_dump : command not found
basic_dump_ex : command not found
iflist : command not found
So I added path C:\cygwin\WpdPack\Examples-pcap\basic_dump in windows environment variable
but to my surprise I still got
command not found when I run the command above
What should I do ? or what I am missing ?