Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed.

来源:互联网 发布:淘宝网官方下载 编辑:程序博客网 时间:2024/06/01 09:50

在设置django国际化时 执行命令
python manage.py makemessages -l zh_hans
报错,
CommandError: Can’t find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed.

MAC ,django1.9

解决方法:
1、Install Homebrew : /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
2、Install GNU gettext : brew install gettext
3、Create symlink : brew link gettext –force

第一步可以忽略,执行brew install gettext时会自动安装,第三步一定要执行,不执行第三步还会报错,切记!

阅读全文
0 0
原创粉丝点击