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

前端 未结 2 1483
礼貌的吻别
礼貌的吻别 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:07

    Paulo Scardine's answer is perfect, but after I executed 'sudo brew link gettext' I got an error message.

    Error: Cowardly refusing to `sudo brew link' You can use brew with sudo, but only if the brew executable is owned by root. However, this is both not recommended and completely unsupported so do so at your own risk.

    It's easy to handle it, just remove 'sudo'

    brew install gettext

    brew link gettext

提交回复
热议问题