• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • Happy New Year everyone! A new version (1.0.0-beta.16) is out for Linux, fixing an issue that could lock the bot up when using it with TS3. Please visit the resources section or the main page (https://www.sinusbot.com) for the new package.

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