Error when trying to start wireshark under X11

Brandon Allbery allbery.b at
Sun Jul 15 20:27:47 PDT 2012

On Sun, Jul 15, 2012 at 10:39 PM, Kok-Yong Tan <ktan at>wrote:

> Can anyone tell me what this error means when I try to start wireshark in
> an xterm window via the X11 system:
> bash-3.2$ sudo wireshark
> (wireshark:11767): Gtk-WARNING **: cannot open display: :0.0

It means something messed with $DISPLAY, which you should not set on OS X;
launchd sets it correctly and overriding it can cause problems like this.
 You're probably setting it in .bash_profile (or .profile, or being really
wrong and setting it in .bashrc).  Don't.

brandon s allbery                                      allbery.b at
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list