can't use it

a blog by Cemre Güngör

Wireshark installation problems in Snow Leopard

I installed Wireshark for my Networking course on Snow Leopard and had some difficulties.

After copying the command line utilities, if the folder you copied into wasn’t there before, it’s probably not in the include path. To edit the include path:

  1. Open Terminal
  2. sudo nano ~/.bash_profile
  3. Add such a line:
    export PATH=/opt/wireshark/bin/:$PATH
    adjust name of the folder according to where you copied the files.

Secondly, I was instructed to put ChmodBPF in StartupItems, but got the following error when I restarted:

“/Library/StartupItems/ChmodBPF” has not been started because it does not have the proper security settings.

I observed that there was something wrong with the ownership of those files. To solve it,

  1. Open Terminal
  2. Go to /Library/StartupItems/
  3. chown -R root:wheel

This will fix the problem.

Then I got the following errors when I ran Wireshark:

The following errors were found while loading the MIBS:
-:0 1 module-not-found failed to locate MIB module `IP-MIB’
-:0 1 module-not-found failed to locate MIB module `IF-MIB’
-:0 1 module-not-found failed to locate MIB module `TCP-MIB’
-:0 1 module-not-found failed to locate MIB module `UDP-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMPv2-MIB’
-:0 1 module-not-found failed to locate MIB module `RFC1213-MIB’
-:0 1 module-not-found failed to locate MIB module `IPV6-ICMP-MIB’
-:0 1 module-not-found failed to locate MIB module `IPV6-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-COMMUNITY-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-FRAMEWORK-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-MPD-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-NOTIFICATION-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-PROXY-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-TARGET-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-USER-BASED-SM-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-USM-DH-OBJECTS-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-VIEW-BASED-ACM-MIB’

Apparently there is a problem with include paths. Solution:

  1. Click OK on error message.
  2. In Wireshark window Edit > Preferences > Name Resolution.
  3. Click SMI (MIB and PIB) paths edit button
  4. Click New
  5. Add the path /usr/share/snmp/mibs/
  6. OK and close Wireshark, also close X11.
  7. Restart Wireshark

Comments

I believe the following line:

3. chown -R root:wheel

should read:

3. sudo chown -R root:wheel

David Boettger on 24/11/2009 at 18:36

You are right! :)

cemre on 24/11/2009 at 22:18