Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
452 views
in Technique[技术] by (71.8m points)

osx lion - Django 1.3.1 compilemessages. Error: sh: msgfmt: command not found

./manage.py compilemessages 

throws this error:

sh: msgfmt: command not found

I am running Mac OS 10.7, and I can't find the download path for the msgfmt program. Is there any way to resolve this problem?

Thanks in advance!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

[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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...