Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed. (Django 1.8 and OSX ElCapitan)

Louis Barranqueiro picture Louis Barranqueiro · Jan 30, 2016 · Viewed 16.9k times · Source

I'm trying to internationalize a Django app by following the wonderful Django documentation. The problem is when I try to run command to create language files:

python manage.py makemessages -l fr

It outputs an error :

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

Answer

Louis Barranqueiro picture Louis Barranqueiro · Jan 30, 2016

Install gettext GNU tools with Homebrew using Terminal

  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