• We would like to invite you to check out the latest 1.0 alpha versions. You can read more about what's new here. Please note, that this is still an early release and will contain new bugs ¯\_(ツ)_/¯
  • If you need help or want to discuss things, you now can also join us on our Discord Server!

I get an error like "what(): locale::facet::_S_create_c_locale name not valid". What do I do?

Answer

Example Error:
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid

On some minimal installs of Debian or other distributions, the locales are not completely installed / built.
This error can be corrected as follow (run as root):

Debian:
Code:
$ apt-get install locales && dpkg-reconfigure locales
Ubuntu:
Code:
$ apt-get install locales
$ locale-gen en_US.UTF-8
$ update-locale LANG=en_US.UTF-8
$ reboot
Top