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
- > Computing dependencies for mercurial
Portfile changed since last build; discarding previous state.
- > Fetching db46
- > Attempting to fetch patch.4.6.21.1 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
- > Attempting to fetch patch.4.6.21.2 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
- > Attempting to fetch patch.4.6.21.3 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
- > Attempting to fetch patch.4.6.21.4 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
- > Attempting to fetch db-4.6.21.tar.gz from http://distfiles.macports.org/db4/4.6.21_6
- > Verifying checksum(s) for db46
- > Extracting db46
- > Applying patches to db46
- > Configuring db46
- > Building db46
- > Staging db46 into destroot
- > Installing db46 @4.6.21_6
- > Activating db46 @4.6.21_6
- > Cleaning db46
- > Fetching gdbm
- > Attempting to fetch gdbm-1.8.3.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/gdbm
- > Verifying checksum(s) for gdbm
- > Extracting gdbm
- > Configuring gdbm
- > Building gdbm
- > Staging gdbm into destroot
- > Installing gdbm @1.8.3_2
- > Activating gdbm @1.8.3_2
- > Cleaning gdbm
- > Fetching sqlite3
- > Attempting to fetch sqlite-3.6.23.tar.gz from http://distfiles.macports.org/sqlite3
- > Verifying checksum(s) for sqlite3
- > Extracting sqlite3
- > Configuring sqlite3
- > Building sqlite3
- > Staging sqlite3 into destroot
- > Installing sqlite3 @3.6.23_0
- > Activating sqlite3 @3.6.23_0
- > Cleaning sqlite3
- > Fetching tcl
- > Attempting to fetch tcl8.5.8-src.tar.gz from http://internap.dl.sourceforge.net/tcl
- > Verifying checksum(s) for tcl
- > Extracting tcl
- > Configuring tcl
- > Building tcl
- > Staging tcl into destroot
- > Installing tcl @8.5.8_0+darwin
- > Activating tcl @8.5.8_0+darwin
- > Cleaning tcl
- > Fetching xorg-scrnsaverproto
- > Attempting to fetch scrnsaverproto-1.2.0.tar.bz2 from http://distfiles.macports.org/xorg-scrnsaverproto
- > Verifying checksum(s) for xorg-scrnsaverproto
- > Extracting xorg-scrnsaverproto
- > Configuring xorg-scrnsaverproto
- > Building xorg-scrnsaverproto
- > Staging xorg-scrnsaverproto into destroot
- > Installing xorg-scrnsaverproto @1.2.0_0
- > Activating xorg-scrnsaverproto @1.2.0_0
- > Cleaning xorg-scrnsaverproto
- > Fetching xorg-libXScrnSaver
- > Attempting to fetch libXScrnSaver-1.2.0.tar.bz2 from http://distfiles.macports.org/xorg-libXScrnSaver
- > Verifying checksum(s) for xorg-libXScrnSaver
- > Extracting xorg-libXScrnSaver
- > Configuring xorg-libXScrnSaver
- > Building xorg-libXScrnSaver
- > Staging xorg-libXScrnSaver into destroot
- > Installing xorg-libXScrnSaver @1.2.0_0
- > Activating xorg-libXScrnSaver @1.2.0_0
- > Cleaning xorg-libXScrnSaver
- > Fetching tk
- > Attempting to fetch tk8.5.8-src.tar.gz from http://internap.dl.sourceforge.net/tcl
- > Verifying checksum(s) for tk
- > Extracting tk
- > Configuring tk
- > Building tk
- > Staging tk into destroot
- > Installing tk @8.5.8_0+darwin
- > Activating tk @8.5.8_0+darwin
- > Cleaning tk
- > Fetching python26
- > Attempting to fetch Python-2.6.5.tar.bz2 from http://distfiles.macports.org/python26
- > Verifying checksum(s) for python26
- > Extracting python26
- > Applying patches to python26
- > Configuring python26
- > Building python26
- > Staging python26 into destroot
- > Installing python26 @2.6.5_0+darwin
- > Activating python26 @2.6.5_0+darwin
To fully complete your installation and make python 2.6 the default, please run:
sudo port install python_select
sudo python_select python26
- > Cleaning python26
- > Fetching mercurial
- > Attempting to fetch mercurial-1.5.tar.gz from http://distfiles.macports.org/python
- > Verifying checksum(s) for mercurial
- > Extracting mercurial
- > Configuring mercurial
- > Building mercurial
- > Staging mercurial into destroot
- > Installing mercurial @1.5_0
- > Activating mercurial @1.5_0
- > Cleaning mercurial
無事 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
- > Computing dependencies for python_select
- > Fetching python_select
- > Attempting to fetch select-0.3.tar.gz from http://distfiles.macports.org/python_select
- > Verifying checksum(s) for python_select
- > Extracting python_select
- > Configuring python_select
- > Building python_select
- > Staging python_select into destroot
- > Installing python_select @0.3_0+darwin_9
- > Deactivating python_select @0.1_4+darwin_9
- > Activating python_select @0.3_0+darwin_9
- > Cleaning python_select
$ sudo python_select python26
Selecting version "python26" for python
とりあえずこれで良いのかな。