Problems with Pcacp Library

Hi!

I want to work with the pcap library, and I installed libpcap and pcap
library in Ubuntu, but when I try a code, there is an error:

/usr/lib/ruby/1.8/pcaplet.rb:51:in lookupdev': no suitable device found (Pcap::PcapError) from /usr/lib/ruby/1.8/pcaplet.rb:51:ininitialize’
from httpsniff.rb:4:in `new’
from httpsniff.rb:4

I searched but i didnt find what to do (I’ve already required the
library…)

Thanks, and sorry for my english ^^

On Sun, Oct 26, 2008 at 12:44 PM, Protos J. [email protected]
wrote:

I searched but i didnt find what to do (I’ve already required the
library…)

Do you have any interface available that the library can use to sniff
from?
If so,
be sure you run your script as root.

If still doesn’t work post the code your are trying to run.

-drd