在 linux 上安装 mercurial 时出错:无法生成 hg.mo
Error installing mercurial on linux: unable to generate hg.mo
我正在尝试从源代码安装 mercurial。我尝试从这里安装 Mercurial 版本 3.5 和 3.6:https://www.mercurial-scm.org/release/
我的 Linux 版本:Red Hat Enterprise Linux 服务器版本 5.11 (Tikanga)
和我的python版本:Python 2.6.5
这是我尝试在本地构建时遇到的错误。
make local
python setup.py \
build_py -c -d . \
build_ext -i \
build_hgexe -i \
build_mo
running build_py
running build_ext
running build_hgexe
running build_mo
generating mercurial/locale/zh_TW/LC_MESSAGES/hg.mo from i18n/zh_TW.po
msgfmt -v -o mercurial/locale/zh_TW/LC_MESSAGES/hg.mo i18n/zh_TW.po -c
usage: msgfmt [ -dv ] [ - ] [ name ... ]
mercurial/locale/zh_TW/LC_MESSAGES/hg.mo: No such file or directory
error: command 'msgfmt' failed with exit status 2
make: *** [local] Error 1
您的 PATH
中似乎有一个 msgfmt
不是安装程序期望找到的那个。
做:
which msgfmt
如果结果不是 /usr/bin/msgfmt
,那可能就是原因
我正在尝试从源代码安装 mercurial。我尝试从这里安装 Mercurial 版本 3.5 和 3.6:https://www.mercurial-scm.org/release/
我的 Linux 版本:Red Hat Enterprise Linux 服务器版本 5.11 (Tikanga)
和我的python版本:Python 2.6.5
这是我尝试在本地构建时遇到的错误。
make local
python setup.py \
build_py -c -d . \
build_ext -i \
build_hgexe -i \
build_mo
running build_py
running build_ext
running build_hgexe
running build_mo
generating mercurial/locale/zh_TW/LC_MESSAGES/hg.mo from i18n/zh_TW.po
msgfmt -v -o mercurial/locale/zh_TW/LC_MESSAGES/hg.mo i18n/zh_TW.po -c
usage: msgfmt [ -dv ] [ - ] [ name ... ]
mercurial/locale/zh_TW/LC_MESSAGES/hg.mo: No such file or directory
error: command 'msgfmt' failed with exit status 2
make: *** [local] Error 1
您的 PATH
中似乎有一个 msgfmt
不是安装程序期望找到的那个。
做:
which msgfmt
如果结果不是 /usr/bin/msgfmt
,那可能就是原因