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:
- Open Terminal
- sudo nano ~/.bash_profile
- 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,
- Open Terminal
- Go to /Library/StartupItems/
- 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:
- Click OK on error message.
- In Wireshark window Edit > Preferences > Name Resolution.
- Click SMI (MIB and PIB) paths edit button
- Click New
- Add the path /usr/share/snmp/mibs/
- OK and close Wireshark, also close X11.
- Restart Wireshark