# Pcaprub on Windows

**URL:** <https://www.ruby-forum.com/t/pcaprub-on-windows/194049>\
**Category:** Ruby\
**Created:** [August 29, 2010, 2:42am UTC](https://www.ruby-forum.com/t/pcaprub-on-windows/194049 "2010-08-29T02:42:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crenner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/278dde/32.png) [@crenner](https://www.ruby-forum.com/u/crenner)\
**Post date:** [August 29, 2010, 2:42am UTC](https://www.ruby-forum.com/t/pcaprub-on-windows/194049/1 "2010-08-29T02:42:15Z")

</div>

I am trying to use Ruby on Windows to perform some low level packet  
sniffing and manipulation. I have looked at pcaprub and can’t seem to  
get it compiled on Windows using Cygwin or Devkit. I am open to using  
other libraries if there is something I am not considering. What is the  
best approach here?

Thanks,

Chris

---

<div class="post-metadata">

**Author:** ![crenner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/278dde/32.png) [@crenner](https://www.ruby-forum.com/u/crenner)\
**Post date:** [August 29, 2010, 6:14pm UTC](https://www.ruby-forum.com/t/pcaprub-on-windows/194049/2 "2010-08-29T18:14:59Z")

</div>

On Aug 28, 9:42 pm, Chris R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am trying to use Ruby on Windows to perform some low level packet  
> sniffing and manipulation. I have looked at pcaprub and can’t seem to  
> get it compiled on Windows using Cygwin or Devkit. I am open to using  
> other libraries if there is something I am not considering. What is the  
> best approach here?

I guess you can’t use pcap from cygwin since is emulating posix while  
pcap is native Windows driver and library.

When you mention “devkit” I suppose you’re using RubyInstaller +  
DevKit, correct? If so I would suggest you provide the headers and  
development dependencies (lib) required for pcaprub be installed.

Most of the time, the answers to these questions are in the  
documentation (if present) or the tool source code.

Look into that and provide the full output of errors you’re getting;  
that helps too.
