ksaitoの日記

日々試したことの覚え書き

Solaisのmercurial

移転しました。

自動的にリダイレクトします。

Solairsにpkgutilでmercurialをインストールしました。
pythonの設定に問題があるようで、そのままではmercurialのライブラリが見つからず起動しません。

$ sudo pkgutil -i mercurial
$ hg version
abort: couldn't find mercurial libraries in [/opt/csw/bin /opt/csw/lib/python26.zip /opt/csw/lib/python2.6 /opt/csw/lib/python2.6/plat-sunos5 /opt/csw/lib/python2.6/lib-tk /opt/csw/lib/python2.6/lib-old /opt/csw/lib/python2.6/lib-dynload /opt/csw/lib/python2.6/site-packages]
(check your install and PYTHONPATH)
$

pythonの環境は、/opt/csw/lib/python2.6/site-packagesを検索しますが、mercurialは、/opt/csw/lib/python/site-packagesにインストールされるのが原因のようです。
エラーメッセージにあるようにPYTHONPATHにパスを設定することで起動するようになりました。

$ export PYTHONPATH=/opt/csw/lib/python/site-packages
$ hg version
Mercurial Distributed SCM (version 1.3.1)

Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> 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.
$