BelaPlatform / bela-image-builder

Scripts to build a Bela image from scratch
MIT License
37 stars 16 forks source link

LOCALE screwed up? #12

Closed giuliomoro closed 7 years ago

giuliomoro commented 7 years ago

Issue by giuliomoro Tuesday Apr 25, 2017 at 00:23 GMT Originally opened as https://github.com/LBDonovan/image-builder/issues/12


You would occasionally get this warning (e.g.: when apt-get'ing something that uses perl to configure the package).

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

This solution worked:

$ export LANGUAGE=en_US.UTF-8
$ export LANG=en_US.UTF-8
$ export LC_ALL=en_US.UTF-8
$ locale-gen en_US.UTF-8
$ dpkg-reconfigure locales

note: the current (incomplete, see log above) configuration is en_GB.UTF-8 (so GB instead of US). I reckon the above fixe with en_GB would work similarly well.