Mac(Yosemite)でWiresharkが起動できない

自分用メモ

単純に https://www.wireshark.org/download.html からダウンロードしてインストール後起動しようとしてもダメで、もちろんXサーバー(http://xquartz.macosforge.org/landing/)も入っている。
だけど起動しない状況になるので調べてみた。

結論だけ言えば以下のフォーラムにあった、

<br />
sudo ln -s /opt/X11 /usr/X11<br />

を実行するだけだった。

Wireshark doesn’t start after upgrading to Mac OS X Yosemite

https://ask.wireshark.org/questions/36367/wireshark-doesnt-start-after-upgrading-to-mac-os-x-yosemite

これだけだとあれなので、ログとかから少し追ってみた。

まずはコンソールから

<br />
Process: wireshark-bin [59011]<br />
Path: /Applications/Wireshark.app/Contents/Resources/bin/wireshark-bin<br />
Identifier: wireshark-bin<br />
Version: ???<br />
Code Type: X86-64 (Native)<br />
Parent Process: Wireshark [59009]<br />
Responsible: Wireshark [59009]<br />
User ID: 501</p>
<p>Date/Time: 2015-05-02 12:15:30.179 +0900<br />
OS Version: Mac OS X 10.10.3 (14D136)<br />
Report Version: 11<br />
Anonymous UUID: B3C3CABA-689D-E0B5-37CA-A5BB4E202AA3<br />
Time Awake Since Boot: 640000 seconds</p>
<p>Crashed Thread: 0</p>
<p>Exception Type: EXC_BREAKPOINT (SIGTRAP)<br />
Exception Codes: 0x0000000000000002, 0x0000000000000000</p>
<p>Application Specific Information:<br />
dyld: launch, loading dependent libraries</p>
<p>Dyld Error Message:<br />
Library not loaded: /usr/X11/lib/libXext.6.dylib<br />
Referenced from: /Applications/Wireshark.app/Contents/Resources/lib/libgtk-x11-2.0.0.dylib<br />
Reason: image not found<br />

 

確かに /usr/X11 のライブラリにリンクされている。。

一応 ldd 的な事もしてみたかったので otool を使ってみる

Mac版lddはotool -L

http://tel.cocolog-nifty.com/blog/2009/04/maclddotool–l-.html

<br />
$ otool -L /Applications/Wireshark.app/Contents/Resources/lib/libgtk-x11-2.0.0.dylib</p>
<p>/Applications/Wireshark.app/Contents/Resources/lib/libgtk-x11-2.0.0.dylib:<br />
 @rpath/libgtk-x11-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.17.0)<br />
 @rpath/libgdk-x11-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.17.0)<br />
 /usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)<br />
 /usr/X11/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0)<br />
 /usr/X11/lib/libXinerama.1.dylib (compatibility version 2.0.0, current version 2.0.0)<br />
 /usr/X11/lib/libXrandr.2.dylib (compatibility version 5.0.0, current version 5.0.0)<br />
 /usr/X11/lib/libXcursor.1.dylib (compatibility version 2.0.0, current version 2.2.0)<br />
 @rpath/libpangocairo-1.0.0.dylib (compatibility version 3001.0.0, current version 3001.1.0)<br />
 /usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0)<br />
 /usr/X11/lib/libXcomposite.1.dylib (compatibility version 2.0.0, current version 2.0.0)<br />
 /usr/X11/lib/libXdamage.1.dylib (compatibility version 3.0.0, current version 3.0.0)<br />
 /usr/X11/lib/libXfixes.3.dylib (compatibility version 5.0.0, current version 5.0.0)<br />
 @rpath/libatk-1.0.0.dylib (compatibility version 20810.0.0, current version 20810.1.0)<br />
 /usr/X11/lib/libcairo.2.dylib (compatibility version 10803.0.0, current version 10803.6.0)<br />
 @rpath/libgdk_pixbuf-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.0.0)<br />
 @rpath/libgio-2.0.0.dylib (compatibility version 3601.0.0, current version 3601.0.0)<br />
 /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)<br />
 /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 41.0.0)<br />
 @rpath/libpangoft2-1.0.0.dylib (compatibility version 3001.0.0, current version 3001.1.0)<br />
 @rpath/libpango-1.0.0.dylib (compatibility version 3001.0.0, current version 3001.1.0)<br />
 @rpath/libgmodule-2.0.0.dylib (compatibility version 3601.0.0, current version 3601.0.0)<br />
 @rpath/libgobject-2.0.0.dylib (compatibility version 3601.0.0, current version 3601.0.0)<br />
 /usr/lib/libffi.dylib (compatibility version 1.0.0, current version 1.0.0)<br />
 @rpath/libglib-2.0.0.dylib (compatibility version 3601.0.0, current version 3601.0.0)<br />
 @rpath/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0)<br />
 /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)<br />
 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)<br />
 /usr/X11/lib/libfreetype.6.dylib (compatibility version 13.0.0, current version 13.2.0)<br />
 /usr/X11/lib/libfontconfig.1.dylib (compatibility version 6.0.0, current version 6.3.0)<br />

うわぁ、 /usr/X11 以下いっぱいありますね。。

otool 覚えたのでよしとしよう。

ではでは〜