Problems running Bro

Sorry but when i try to read a file i recive the next output

root@lobito:/usr/local/bro/etc# /usr/local/bro/bin/bro -r segment190.pcap
line 1: error: can't open bro.init

root@lobito:/usr/local/bro/etc# netstat -natu -p
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0* LISTEN 2317/hpiod
tcp 0 0* LISTEN 2320/python
tcp 0 0* LISTEN 2006/portmap
tcp 0 0* LISTEN 2619/inetd
tcp 0 0* LISTEN 2709/rpc.statd
tcp 0 0* LISTEN 2433/cupsd
tcp 0 0* LISTEN 2563/exim4
udp 0 0* 2507/avahi-daemon:
udp 0 0* 2709/rpc.statd
udp 0 0 ESTABLISHED21988/bro
udp 0 0* 3184/dhclient
udp 0 0* 2507/avahi-daemon:
udp 0 0* 2006/portmap
udp 0 0* 2433/cupsd
udp 0 0* 2709/rpc.statd

Does anybody knows what im doing wrong? or i have to set and another option to read this file???


This error means that Bro cannot find the policy scripts. The environment variable $BROPATH should contain the path to your policy script directory and to all other custom directories that include policy script files:

% BRO_DIR="/path/to/bro"
% export BROPATH="${BRO_DIR}/policy:${BRO_DIR}/policy/local:${BRO_DIR}/policy/sigs"