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

自分用メモ

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

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

sudo ln -s /opt/X11 /usr/X11

を実行するだけだった。

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

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

まずはコンソールから

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

 

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

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

Mac版lddはotool -L

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

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

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

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

ではでは〜

コメント