Q1:Mac OS Mountain Lion默認是沒有安裝X11的,而wireshark運行須要x11,所以若是直接安裝wireshark而沒有安裝x11,wireshark不會正常運行。app
A1:去蘋果主頁下載最新版本的xQuartz,而後運行wireshark,會彈出一個選擇x11的界面,選擇/Application/Utilities目錄下的xQuartz程序,點擊肯定,spa
而後X11會運行,彈出一個xterm窗口,在其中運行/Application/Wireshark.app/Contents/MacOS/Wireshark,就會執行一系列初始化,而後打開wireshark.it
Q2:dyld: Library not loaded: /usr/X11/lib/libcairo.2.dylibio
A2:sudo ln -s /opt/X11 /usr/X11class