Django 1.3.1 compilemessages. Error: sh: msgfmt: command not found

前端 未结 2 1487
礼貌的吻别
礼貌的吻别 2020-12-16 11:35
./manage.py compilemessages 

throws this error:

sh: msgfmt: command not found

I am running Mac OS 10.7, and I can

2条回答
  •  爱一瞬间的悲伤
    2020-12-16 12:11

    [update] TLDR; as Dogukan commented: Mac OS Maverics brew install gettext; brew link gettext --force worked for me.

    [update] user Lajarre reported: as of today (March 2014), I had to do brew install msgpack.

    You need GNU gettext and gettext-tools.

    If you use fink, try:

    sudo fink install gettext-tools
    

    You may need to add /sw/bin/ to your PATH if it is not there yet.

    If you don't use fink, try brew:

    brew install gettext
    brew link gettext
    

    [update] removed sudo call from the brew example as suggested by Dave and Jason.

提交回复
热议问题