Mac OS X 開発環境構築手順:Mercurialインストール
SCMBCに備えて導入してみます。とはいえインストールマニュアルに従って手順数手実践&コマンド打ち込んだだけですけども。 :-)
共に、提示されている手法で導入。
GUIインストール:MacHg
- ファイルをダウンロード。
- 解凍、アプリケーションフォルダに配置、実行。
- 起動時にユーザ情報&メールアドレスを設定。起動時何回かエラー(マージ云々が無い)メッセージが出たけど2〜3回したら出なくなった。大丈夫なのかな?
CUIインストール by Homebrew
- こちらはHomebrew経由で数コマンドで完了。まずはpythonインストール。
$ brew install python ==> Installing python dependency: readline ==> Downloading http://ftpmirror.gnu.org/readline/readline-6.2.tar.gz ######################################################################## 100.0% ==> Downloading patches ######################################################################## 100.0% ######################################################################## 100.0% ==> Patching patching file vi_mode.c patching file callback.c patching file support/shobj-conf patching file patchlevel ==> ./configure --prefix=/usr/local/Cellar/readline/6.2.2 --mandir=/usr/local/Cellar/readline/6.2.2/share/man --infodir=/usr/local/Cellar/readli ==> make install ==> Caveats This formula is keg-only, so it was not symlinked into /usr/local. OS X provides the BSD libedit library, which shadows libreadline. 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. If you build your own software and it requires this formula, you'll need to add its lib & include paths to your build variables: LDFLAGS -L/usr/local/Cellar/readline/6.2.2/lib CPPFLAGS -I/usr/local/Cellar/readline/6.2.2/include ==> Summary /usr/local/Cellar/readline/6.2.2: 30 files, 1.5M, built in 18 seconds ==> Installing python dependency: sqlite ==> Downloading http://www.sqlite.org/sqlite-autoconf-3071000.tar.gz ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/sqlite/3.7.10 ==> make install /usr/local/Cellar/sqlite/3.7.10: 9 files, 1.8M, built in 28 seconds ==> Installing python dependency: gdbm ==> Downloading http://ftpmirror.gnu.org/gdbm/gdbm-1.10.tar.gz ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/gdbm/1.10 --mandir=/usr/local/Cellar/gdbm/1.10/share/man --infodir=/usr/local/Cellar/gdbm/1.10/share/ ==> make install /usr/local/Cellar/gdbm/1.10: 10 files, 224K, built in 9 seconds ==> Installing python ==> Downloading http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2 ######################################################################## 100.0% ==> Patching patching file Lib/whichdb.py Hunk #1 succeeded at 91 with fuzz 1. ==> ./configure --prefix=/usr/local/Cellar/python/2.7.2 --enable-shared ==> make ==> make install ==> Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.25.tar.gz ######################################################################## 100.0% ==> /usr/local/Cellar/python/2.7.2/bin/python setup.py install ==> Caveats A "distutils.cfg" has been written to: /usr/local/Cellar/python/2.7.2/lib/python2.7/distutils specifing the install-scripts folder as: /usr/local/share/python If you install Python packages via "python setup.py install", easy_install, pip, any provided scripts will go into the install-scripts folder above, so you may want to add it to your PATH. Distribute has been installed, so easy_install is available. To update distribute itself outside of Homebrew: /usr/local/share/python/easy_install pip /usr/local/share/python/pip install --upgrade distribute See: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python ==> Summary /usr/local/Cellar/python/2.7.2: 4803 files, 81M, built in 113 seconds $
- 次いでMercurial本体インストール。
$ brew install mercurial ==> Downloading http://mercurial.selenic.com/release/mercurial-2.1.2.tar.gz ######################################################################## 100.0% ==> make PREFIX=/usr/local/Cellar/mercurial/2.1.2 build ==> make PREFIX=/usr/local/Cellar/mercurial/2.1.2 install-bin /usr/local/Cellar/mercurial/2.1.2: 495 files, 6.5M, built in 13 seconds $
- 完了後、バージョンを確認。
$ hg version Mercurial Distributed SCM (version 2.1.2) (see http://mercurial.selenic.com for more information) Copyright (C) 2005-2012 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $
後はBitbucketを使えるようにして簡単な操作程度は事前に済ませておきたいところ。