2015年3月23日月曜日

macにwiresharkをhomebrewで入れる

homebrew便利です。wiresharkも簡単に入れられました。
MacのバージョンはMavericksです。

$ brew install wireshark --with-qt
==> Installing dependencies for wireshark: gettext, libffi, glib, libtasn1, gmp, nettle, gnutls, libgpg-error, libgcrypt, d-bus, geoip, c-ares, qt
==> Installing wireshark dependency: gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.4.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gettext-0.19.4.mavericks.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
 
Mac OS X provides similar software, and installing this software in
parallel can cause all kinds of trouble.
 
OS X provides the BSD gettext library and some software gets confused if both are in the library path.
 
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
 
    LDFLAGS:  -L/usr/local/opt/gettext/lib
    CPPFLAGS: -I/usr/local/opt/gettext/include
 
==> Summary
🍺  /usr/local/Cellar/gettext/0.19.4: 1920 files,  21M
==> Installing wireshark dependency: libffi
==> Downloading https://homebrew.bintray.com/bottles/libffi-3.0.13.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libffi-3.0.13.mavericks.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
 
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
 
Some formulae require a newer version of libffi.
 
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
 
    LDFLAGS:  -L/usr/local/opt/libffi/lib
 
==> Summary
🍺  /usr/local/Cellar/libffi/3.0.13: 13 files, 388K
==> Installing wireshark dependency: glib
==> Downloading https://homebrew.bintray.com/bottles/glib-2.42.2.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring glib-2.42.2.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/glib/2.42.2: 410 files,  17M
==> Installing wireshark dependency: libtasn1
==> Downloading https://homebrew.bintray.com/bottles/libtasn1-4.2.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libtasn1-4.2.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/libtasn1/4.2: 55 files, 568K
==> Installing wireshark dependency: gmp
==> Downloading https://homebrew.bintray.com/bottles/gmp-6.0.0a.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gmp-6.0.0a.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/gmp/6.0.0a: 15 files, 3.2M
==> Installing wireshark dependency: nettle
==> Downloading https://homebrew.bintray.com/bottles/nettle-2.7.1.mavericks.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring nettle-2.7.1.mavericks.bottle.1.tar.gz
🍺  /usr/local/Cellar/nettle/2.7.1: 66 files, 1.7M
==> Installing wireshark dependency: gnutls
==> Downloading https://homebrew.bintray.com/bottles/gnutls-3.3.13.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gnutls-3.3.13.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/gnutls/3.3.13: 1020 files, 8.8M
==> Installing wireshark dependency: libgpg-error
==> Downloading https://homebrew.bintray.com/bottles/libgpg-error-1.18.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libgpg-error-1.18.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/libgpg-error/1.18: 17 files, 332K
==> Installing wireshark dependency: libgcrypt
==> Downloading https://homebrew.bintray.com/bottles/libgcrypt-1.6.3.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libgcrypt-1.6.3.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/libgcrypt/1.6.3: 16 files, 1.3M
==> Installing wireshark dependency: d-bus
==> Downloading https://homebrew.bintray.com/bottles/d-bus-1.8.14.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring d-bus-1.8.14.mavericks.bottle.tar.gz
==> Caveats
To have launchd start d-bus at login:
    ln -sfv /usr/local/opt/d-bus/*.plist ~/Library/LaunchAgents
Then to load d-bus now:
    launchctl load ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
==> /usr/local/Cellar/d-bus/1.8.14/bin/dbus-uuidgen --ensure=/usr/local/var/lib/dbus/machine-id
==> Summary
🍺  /usr/local/Cellar/d-bus/1.8.14: 39 files, 2.0M
==> Installing wireshark dependency: geoip
==> Downloading https://homebrew.bintray.com/bottles/geoip-1.6.5.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring geoip-1.6.5.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/geoip/1.6.5: 16 files, 736K
==> Installing wireshark dependency: c-ares
==> Downloading https://homebrew.bintray.com/bottles/c-ares-1.10.0.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring c-ares-1.10.0.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/c-ares/1.10.0: 57 files, 540K
==> Installing wireshark dependency: qt
==> Downloading https://homebrew.bintray.com/bottles/qt-4.8.6.mavericks.bottle.6.tar.gz
######################################################################## 100.0%
==> Pouring qt-4.8.6.mavericks.bottle.6.tar.gz
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.
 
.app bundles were installed.
Run `brew linkapps qt` to symlink these to /Applications.
==> Summary
🍺  /usr/local/Cellar/qt/4.8.6: 2790 files, 122M
==> Installing wireshark
==> Downloading https://www.wireshark.org/download/src/all-versions/wireshark-1.12.4.tar.bz2
######################################################################## 100.0%
==> Patching
patching file configure
Hunk #1 succeeded at 16946 (offset 243 lines).
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/wireshark/1.12.4 --with-gnutls --disable-gtktest --with-qt
==> make
==> make install
==> Caveats
If your list of available capture interfaces is empty
(default OS X behavior), try the following commands:
 
  curl https://bugs.wireshark.org/bugzilla/attachment.cgi?id=3373 -o ChmodBPF.tar.gz
  tar zxvf ChmodBPF.tar.gz
  open ChmodBPF/Install\ ChmodBPF.app
 
This adds a launch daemon that changes the permissions of your BPF
devices so that all users in the 'admin' group - all users with
'Allow user to administer this computer' turned on - have both read
and write access to those devices.
 
See bug report:
  https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3760
==> Summary
🍺  /usr/local/Cellar/wireshark/1.12.4: 270 files,  64M, built in 3.8 minutes

wiresharkの起動は以下のコマンドでやります。
$ wireshark-qt

参考URL
http://momijiame.tumblr.com/post/43785788212/mac-os-x-mountain-lion-homebrew-wireshark
http://stackoverflow.com/questions/26242156/install-wireshark-on-macos-x-via-brew

0 件のコメント:

コメントを投稿