Home

読み込み中...

MacPortsでMercurialをインストール

2010/09/06

このエントリーをはてなブックマークに追加

まずはMercurialを検索

% port search mercurial
hg-forest @20090409 (devel, mercurial)
    Mercurial extension for nested repositories

mercurial @1.6.3 (devel, python)
    A fast, lightweight, distributed SCM system written in Python.

py-hgsvn @0.1.8 (python, devel)
    hgsvn is a set of scripts for Subversion and Mercurial

py25-hgsvn @0.1.8 (python, devel)
    hgsvn is a set of scripts for Subversion and Mercurial

py26-hgsubversion @1.1 (python, devel)
    hgsubversion is a Mercurial extension for working with Subversion (svn)
    repositories.

py26-hgsvn @0.1.8 (python, devel)
    hgsvn is a set of scripts for Subversion and Mercurial

py27-hgsvn @0.1.8 (python, devel)
    hgsvn is a set of scripts for Subversion and Mercurial

Found 7 ports.

ふむふむ。mercurial @1.6.3 (devel, python)っぽいですね。

早速、インストール。

% sudo port install mercurial
--->  Computing dependencies for mercurial
--->  Dependencies to be installed: python26 gdbm tk Xft2 tcl xorg-libXScrnSaver xorg-scrnsaverproto
--->  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 Xft2
--->  Attempting to fetch libXft-2.1.14.tar.bz2 from http://xorg.freedesktop.org/releases/individual/lib/
--->  Verifying checksum(s) for Xft2
--->  Extracting Xft2
--->  Configuring Xft2
--->  Building Xft2
--->  Staging Xft2 into destroot
--->  Installing Xft2 @2.1.14_0
--->  Activating Xft2 @2.1.14_0
--->  Cleaning Xft2
--->  Fetching tcl
--->  Attempting to fetch tcl8.5.8-src.tar.gz from http://jaist.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
--->  Activating tcl @8.5.8_0
--->  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://xorg.freedesktop.org/archive/individual/lib/
--->  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://jaist.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
--->  Activating tk @8.5.8_0
--->  Cleaning tk
--->  Fetching python26
--->  Attempting to fetch Python-2.6.6.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.6_0
--->  Activating python26 @2.6.6_0

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.6.3.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.6.3_0
--->  Activating mercurial @1.6.3_0
--->  Cleaning mercurial

言われるがままにpython_selectをインストール。

% sudo port install python_select
--->  Computing dependencies for python_select
--->  Fetching python_select
--->  Attempting to fetch select-0.3.tar.gz from http://svn.macports.org/repository/macports/contrib/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
--->  Activating python_select @0.3_0
--->  Cleaning python_select

そして言われるがままにデフォルトのpythonをpython26へ。

% sudo python_select python26
Selecting version "python26" for python

これで完了ですね。

Leave a comment