Mercurial のインストール

今までは subversion でバージョン管理をしてきたが,Mercurial で論文執筆しているプロジェクトに加わることになったので,Mercurial のインストールを行った。

$ sudo port install mercurial

      • > Computing dependencies for mercurial
      • > Verifying checksum(s) for db46

Error: Target org.macports.checksum returned: Could not open file: /opt/local/var/macports/distfiles/db4/4.6.21_6/patch.4.6.21.1
Error: The following dependencies failed to build: python26 db46 gdbm sqlite3 tk tcl xorg-libXScrnSaver xorg-scrnsaverproto
Error: Status 1 encountered during processing.

依存関係に関連するエラーのようなので,とりあえず Macport を selfupdate することに。

$ sudo port selfupdate

MacPorts base version 1.8.1 installed,
MacPorts base version 1.8.2 downloaded.

      • > MacPorts base is outdated, installing new version 1.8.2

Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

再度,mercurial をインストールしてみる。

$ sudo port install mercurial

Portfile changed since last build; discarding previous state.

To fully complete your installation and make python 2.6 the default, please run:
sudo port install python_select
sudo python_select python26

無事 Mercurial をインストールできたようだ。
次に,下記メッセージに従うことにした。

To fully complete your installation and make python 2.6 the default, please run:
sudo port install python_select
sudo python_select python26

言われたままにやってみる。

$ sudo port install python_select

$ sudo python_select python26
Selecting version "python26" for python

とりあえずこれで良いのかな。