homebrewを使ってみた
インストールはhttp://wiki.github.com/mxcl/homebrew/installation に記載されている ruby のコマンドを実行するだけ。簡単。
さっそく python のインストールをしてみる。
$ sudo brew install python Warning: It appears you have Macports or Fink installed Although, unlikely, this can break builds or cause obscure runtime issues. If you experience problems try uninstalling these tools. ==> Downloading http://www.sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz File already downloaded and cached to /Library/Caches/Homebrew ==> ./configure --prefix=/usr/local/Cellar/sqlite/3.6.23.1 --disable-dependency-tracking ==> make install /usr/local/Cellar/sqlite/3.6.23.1: 8 files, 2.5M, built in 104 seconds ==> Downloading ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz File already downloaded and cached to /Library/Caches/Homebrew ==> Downloading patches ######################################################################## 100.0% ######################################################################## 100.0% ######################################################################## 100.0% ######################################################################## 100.0% ######################################################################## 100.0% ==> Patching patching file readline.h patching file display.c patching file terminal.c patching file patchlevel patching file display.c patching file patchlevel patching file display.c patching file patchlevel patching file display.c patching file patchlevel patching file complete.c patching file patchlevel ==> ./configure --prefix=/usr/local/Cellar/readline/6.0 --mandir=/usr/local/Cellar/readline/6.0/share/man --infodir= ==> make install ==> Caveats readline is keg-only. This means it is not symlinked into Homebrew's prefix. The formula provides the following rationale: OS X provides the BSD Readline library. In order to prevent conflicts when programs look for libreadline we are defaulting this GNU Readline installation to keg-only. Generally there are no consequences of this for you, however if you build your own software and it requires this formula, you may want to run this command to link it into the Homebrew prefix: brew link readline ==> Summary /usr/local/Cellar/readline/6.0: 27 files, 1.7M, built in 28 seconds ==> Downloading http://gnu.sixsigmaonline.org/gnu/gdbm/gdbm-1.8.3.tar.gz File already downloaded and cached to /Library/Caches/Homebrew ==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/gdbm/1.8.3 --mandir=/usr/lo ==> make install /usr/local/Cellar/gdbm/1.8.3: 7 files, 140K, built in 7 seconds ==> Downloading http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tar.bz2 File already downloaded and cached to /Library/Caches/Homebrew ==> ./configure --prefix=/usr/local/Cellar/python/2.6.5 --enable-shared ==> make ==> make install ==> Caveats The site-packages folder for this Python is: /usr/local/Cellar/python/2.6.5/lib/python2.6/site-packages We've added a "homebrew.pth" file to also include: /usr/local/lib/python2.6/site-packages You may want to create a "virtual environment" using this Python as a base so you can manage multiple independent site-packages. See: http://pypi.python.org/pypi/virtualenv If you install Python packages via pip, binaries will be installed under Python's cellar but not automatically linked into the Homebrew prefix. You may want to add Python's bin folder to your PATH as well: /usr/local/Cellar/python/2.6.5/bin ==> Summary /usr/local/Cellar/python/2.6.5: 4452 files, 74M, built in 2.8 minutes
どうやら、パッケージとバージョンできっちりディレクトリ分けてインストールされる模様。
パスの設定をして完了っと。