Lion にしたのでメモ書き
Snow Leopard から Lion にしました。アップデートは、AppStore経由。アップデート後はすんなり使えているので書くことなんぞねーだろぉとタカをくくっていたら、意外な所で躓いたのでメモ。
今回のアップデートで、Unix部分でも様々な箇所がアップデートされてます。Kernelもバージョンも久々にメジャーアップデート。バージョン番号以外、何が変わったのか追っかけていないのでわかりませんが…
躓いたのは、Python。結論から言うと、LionからPython2.7が採用され、デフォルトで動くようになってます。(そして、LLVMでコンパイルされてます)
SnowLeopardで使ってたPython関連のコマンドは軒並みアウト。これを機会に、再インストールするのをオススメ。
[yasui@yasui-MBA: ~/Desktop/develop/kisa][1:18] $ uname -a Darwin yasui-MBA.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64 [yasui@yasui-MBA: ~/Desktop/develop/kisa][1:18] $ python Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> ^D [yasui@yasui-MBA: ~/Desktop/develop/kisa][1:18] $
そんな訳で、pipをインストールし、bzrをインストール。 SnowLeopard時代からpip1.0.0を使ってましたが、今回は1.0.2が入りました。
ちなみにpipが入った直後は、何も考えていなかったので rehash してません。
[yasui@yasui-MBA: ~/Desktop/develop/libKisa][0:54] $ sudo easy_install pip Password: Searching for pip Reading http://pypi.python.org/simple/pip/ Reading http://www.pip-installer.org Reading http://pip.openplans.org Best match: pip 1.0.2 Downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49 Processing pip-1.0.2.tar.gz Running pip-1.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ND2V1b/pip-1.0.2/egg-dist-tmp-LlK1uM warning: no files found matching '*.html' under directory 'docs' warning: no previously-included files matching '*.txt' found under directory 'docs/_build' no previously-included directories found matching 'docs/_build/_sources' Adding pip 1.0.2 to easy-install.pth file Installing pip script to /usr/local/bin Installing pip-2.7 script to /usr/local/bin Installed /Library/Python/2.7/site-packages/pip-1.0.2-py2.7.egg Processing dependencies for pip Finished processing dependencies for pip [yasui@yasui-MBA: ~/Desktop/develop/libKisa][0:55] $ pip help Usage: pip COMMAND [OPTIONS] Options: --version show program's version number and exit -h, --help Show help -E DIR, --environment=DIR virtualenv environment to run pip in (either give the interpreter or the environment base directory) -s, --enable-site-packages Include site-packages in virtualenv if one is to be created. Ignored if --environment is not used or the virtualenv already exists. -v, --verbose Give more output -q, --quiet Give less output --log=FILENAME Log file where a complete (maximum verbosity) record will be kept --proxy=PROXY Specify a proxy in the form user:passwd@proxy.server:port. Note that the user:password@ is optional and required only if you are behind an authenticated proxy. If you provide user@proxy.server:port then you will be prompted for a password. --timeout=SECONDS, --default-timeout=SECONDS Set the socket timeout (default 15 seconds) Commands available: bundle: Create pybundles (archives containing multiple packages) freeze: Output all currently installed packages (exact versions) to stdout help: Show available commands install: Install packages search: Search PyPI uninstall: Uninstall packages unzip: Unzip individual packages zip: Zip individual packages [yasui@yasui-MBA: ~/Desktop/develop/libKisa][0:56] $ sudo pip install bzr Downloading/unpacking bzr Downloading bzr-2.5b2.tar.gz (7.5Mb): 7.5Mb downloaded Running setup.py egg_info for package bzr No Cython, trying Pyrex... (略) Successfully installed bzr Cleaning up... [yasui@yasui-MBA: ~/Desktop/develop/libKisa][0:59] $ rehash [yasui@yasui-MBA: ~/Desktop/develop/libKisa][1:01] $ bzr Bazaar 2.5b2 -- a free distributed version-control tool http://bazaar.canonical.com/ Basic commands: bzr init makes this directory a versioned branch libKisa: bzr branch make a copy of another branch bzr add make files or directories versioned bzr ignore ignore a file or pattern bzr mv move or rename a versioned file bzr status summarize changes in working copy bzr diff show detailed diffs bzr merge pull in changes from another branch bzr commit save some or all changes bzr send send changes via email bzr log show history of changes bzr check validate storage bzr help init more help on e.g. init command bzr help commands list all commands bzr help topics list all help topics [yasui@yasui-MBA: ~/Desktop/develop/libKisa][1:01] $
なお、他に再インストールしたのは下記のソフトウェアです。
- XCode
- iTunes
………デカイノダケ ノコリヤガッタゼ チクショーorz