小さい頃はエラ呼吸

いつのまにやら肺で呼吸をしています。


Mac OS X Snow Leopardのターミナルでtreeコマンドを使う

はじめに

Mac OS Xでtreeコマンドを使いたいと思ったのですが、-bash: tree: command not foundと言われてしまいました。
この記事では、Mac OS Xにtreeコマンドをインストールする方法について書いています。

APPLE MacBook Air 1.3GHz Dual Core i5/11.6
アップル (2013-06-11)
売り上げランキング: 1,321

必要なもの
  • MacPorts
Mac OS X Snow LeopardにMacPortsをインストールする

MacPortsがインストール済みの場合は飛ばして大丈夫です。

Mac OS Xにtreeコマンドをインストールする

MacPortsを使ってtreeコマンドをインストールします。

sudo port install tree
--->  Fetching tree
--->  Attempting to fetch tree-1.5.3.tgz from ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/ports/distfiles/
--->  Verifying checksum(s) for tree
--->  Extracting tree
--->  Applying patches to tree
--->  Configuring tree
--->  Building tree
--->  Staging tree into destroot
--->  Installing tree @1.5.3_0
--->  Activating tree @1.5.3_0
--->  Cleaning tree

インストールが完了すると、treeコマンドが使えるようになります。