2014年11月12日水曜日

httping for Mac OS X

http://www.flickr.com/photos/zimpenfish/2408559508/in/photolist-5nAtLr-btaHpc-btaKKv-btaKaF-btaFE4-btaHeZ-btaJPc-btaHBH-btaKuK-btaMVa-btaLTB-btaJCX-btaJhk-btaM8z-btaJZH-btaL8X-btaMu6-btaLoX-btaJ6K-btaN7e-7bXKPL-KqBTu-5LYu4Y-iVfzxz-8ZkXdq-4EQuQ5-4CzNuA-8aryYR-g9wff-btaJtZ-btaLFM-btaNBX-btaMHV-btaHVD-btaNsX-btaFXH-btaMhB-btaHLR-btaH4a-btaGfH-bS1XMM-bD7b1s-tK1H-8nDSFY-7GCKSB-dFPGWk-9Vafpd-6T8nL2-57J1mL-8Vm7Sc/

httping (http://www.vanheusden.com/httping/)は、httpへの疎通チェックをpingのように確認できるコマンドラインツールです。
このhttpingがいつの間にかMacのbrewでインストールできるようになっていたので、インストールしてみました。

以下、手順です。

まず、brewをインストールしておいてください。
http://brew.sh/

brewをアップデート。
$ brew update

httpingを探す。
$ brew search httping
httping

httpingをインストール。
$ brew install httping
==> Installing dependencies for httping: xz, gettext
==> Installing httping dependency: xz
==> Downloading http://fossies.org/linux/misc/xz-5.0.6.tar.gz

curl: (22) The requested URL returned error: 410 Gone
Trying a mirror...
==> Downloading http://tukaani.org/xz/xz-5.0.6.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/xz/5.0.6
==> make install
  /usr/local/Cellar/xz/5.0.6: 58 files, 1.5M, built in 58 seconds
==> Installing httping dependency: gettext
==> Downloading http://ftpmirror.gnu.org/gettext/gettext-0.19.2.tar.xz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/gettext/0.19.2 --with-included-gettext --with-included-glib --with-included-libcroco --with-included-libunistring --with-emacs --disable-java --disable-csharp --without-git --without-cvs
==> make
==> make install
==> 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.2: 1920 files, 18M, built in 4.7 minutes
==> Installing httping
==> Downloading http://www.vanheusden.com/httping/httping-2.3.4.tgz
######################################################################## 100.0%
==> make install PREFIX=/usr/local/Cellar/httping/2.3.4
  /usr/local/Cellar/httping/2.3.4: 9 files, 132K, built in 12 seconds


うまくインストールされました。
httpingのバージョンをチェック。
$ httping --version
HTTPing v2.3.4, (C) 2003-2013 folkert@vanheusden.com
 * SSL support included (-l)
 * ncurses interface included (-K)

URLへの疎通を確認してみます。
$ httping -K http://takeshiyako.blogspot.jp/



























簡単ですね!