If you are using a PhidgetSBC3 you might see this a lot:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.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 is because perl is very vocal when you are missing the locales that your environment specifies. The fix is easy, just generate the locales that you want to use (en_CA.UTF-8
is the default). This assumes you have already set up SSH on your PhidgetSBC3.
- Enable full Debian Package Repository
- Update apt
apt-get update
- Install the locales package
apt-get install locales -y
- Add the
en_CA.UTF-8
localeecho "en_CA.UTF-8 UTF-8" >> /etc/locale.gen
- Generate the locale
locale-gen
You should see it generating the locale you specified and once it's done, you will no longer see the locale error messages.