From: dam dom Date: 2012-04-15T20:47:32+09:00 Subject: Re: Installing PCAP::::any help will be very.appreciated Cliff Rosson wrote in post #1041942: > AWESOME! By chance I noticed our fix was looking in > c:\devlib\wincap\include. However extracting the devpack puts it in > c:\devlib\wincap\wpdpack\ > > I moved everything in wpdpack up into wincap and the build process went > flawlessly. Running tests now... C:\Ruby193\lib\ruby\gems\1.9.1\gems\pcaprub-0.11.2>gem install pcaprub-0.11.3.a .gem -- --with-pcap-dir=c:/devlibs/winpcap/include Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing pcaprub-0.11.3.a1.gem: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe extconf.rb --with-pcap-dir=c:/devlibs/winpcap/i clude [*] Running checks for pcaprub code... platform is i386-mingw32 checking for main() in -lws2_32... yes checking for main() in -liphlpapi... yes checking for windows.h... yes checking for winsock2.h... yes checking for iphlpapi.h... yes checking for pcap_open_live() in -lwpcap... no checking for pcap_setnonblock() in -lwpcap... no creating Makefile make generating pcaprub-i386-mingw32.def compiling pcaprub.c pcaprub.c:8:18: fatal error: pcap.h: No such file or directory compilation terminated. make: *** [pcaprub.o] Error 1 Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/pcaprub- .11.3.a1 for inspection. Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/pcaprub-0.11.3.a1/ext/pca rub/gem_make.out -- Posted via http://www.ruby-forum.com/.