From: Cliff Rosson Date: 2012-01-22T03:44:00+09:00 Subject: Re: Installing PCAP Hi Jon, > 2) unpack the current gem > > C:\Users\Jon\Downloads\temp>gem unpack pcaprub-0.11.2.gem > Unpacked gem: 'C:/Users/Jon/Downloads/temp/pcaprub-0.11.2' I ran into a little problem on step 2. Since pcaprub never actually installs I cannot unpack it. I tried to "gem fetch" followed by a gem unpack. This worked except that the output dir was empty. So instead I did a gem install pcaprub --install-dir "C:\users\user\downloads\" and it placed it into the pcaprub-0.11.2 folder. I then proceeded to make the changes you suggested. When running the gem build command I got a new error. C:\Users\user\Downloads\pcaprub-0.11.2>gem install pcaprub-0.11.3.a1.gem -- w ith-pcap-dir=c:/devlibs/wincap 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:/Ruby192/bin/ruby.exe extconf.rb with-pcap-dir=c:/devlibs/wincap [*] 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 C:/Ruby192/bin/ruby -e "puts 'EXPORTS', 'Init_pcaprub'" > pcaprub-i386-mingw32. def gcc -I. -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby192/include/ruby-1 .9.1/ruby/backward -I/C/Ruby192/include/ruby-1.9.1 -I. -DHAVE_WINDOWS_H -DHAVE_W INSOCK2_H -DHAVE_IPHLPAPI_H -O3 -g -Wextra -Wno-unused-parameter -Wno-parenth eses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-l ong -DWIN32 -Ic:/devlibs/wincap/include -o pcaprub.o -c 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:/Ruby192/lib/ruby/gems/1.9.1/gems/pcaprub-0 .11.3.a1 for inspection. Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/pcaprub-0.11.3.a1/ext/pcap rub/gem_make.out C:\Users\user\Downloads\pcaprub-0.11.2> The error being pcaprub.c:8:18: fatal error: pcap.h: No such file or directory Any thoughts? Thanks so much for your help! -- Posted via http://www.ruby-forum.com/.