MAC OS X 10.6.8安装Wireshark
我的Mac OS X是10.6.8 snow leopard,在wireshark官网下载了OS X 10.6 and later Intel 64-bit .dmg
成功安装。
但是运行的时候wireshark主界面却迟迟不出现,切换到shell下执行wireshark命令,出现如下错误
1、MacBook-Pro:MacOS $ wireshark
2012-07-16 11:46:23.304 defaults[667:903]
The domain/default pair of (kCFPreferencesAnyApplication, AppleAquaColorVariant) does not exist
2012-07-16 11:46:23.311 defaults[668:903]
The domain/default pair of (kCFPreferencesAnyApplication, AppleHighlightColor) does not exist
dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib
Referenced from: /Applications/Wireshark.app/Contents/Resources/bin/wireshark-bin
Reason: Incompatible library version: wireshark-bin requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0
google了下,找到这么一篇文章--http://azhari.harahap.us/2011/05/wireshark-on-mac-os-incompatible-library-version-wireshark-bin-requires-version-13-0-0-or-later-but-libfreetype-6-dylib-provides-version-10-0-0/
2、安装port
需要用port安装freetype的库,但是发现port又没有安装,到这里去下载了http://distfiles.macports.org/MacPorts/MacPorts-1.9.2-10.6-SnowLeopard.dmg,执行安装时,又提示需要安装xcode,原来xcode是苹果公司向开发人员提供的集成开发环境,用于开发Mac OS X和iOS的应用程序。
没办法,花了一个小时的时间去到这里去下载了个http://adcdownload.apple.com/Developer_Tools/xcode_4.2_for_snow_leopard/xcode_4.2_for_snow_leopard.dmg,悲催的是安装时提示错误,如下
不过幸运的是找了个文章--http://stackoverflow.com/questions/10029270/install-xcode-4-2-for-snow-leopard-fails
只要修改系统的日期为2012年3月26日之前即可,成功安装!
接下来终于可以利用sudo port install 安装freetype了,可安装时提示