Cannot find msguniq. Make sure you have the GNU gettext 0.15 or later tools installed. (Django 1.8 and OSX ElCapitan)

I am trying to internationalize a Django application following the wonderful Django documentation. The problem is that I am trying to run a command to create language files:

python manage.py makemessages -l fr 

Gives an error message:

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

My configuration:

  • OS: OSX El Capitan v10.11.3
  • Python: v3.5
  • Django: v1.8
+5
source share
2 answers

Install gettext GNU tools with Homebrew using Terminal

  • Install Homebrew : /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Install GNU gettext: brew install gettext
  • Create symbolic link: brew link gettext --force
+9
source

If you try to use the --force gettext link, it will warn you:

Please note that this may interfere with software development.

The safest way to use it is to add gettext binary path to your path:

 export PATH="/usr/local/opt/gettext/bin:$PATH" 
+1
source

Source: https://habr.com/ru/post/1241887/


All Articles