tomclegg.net |
warning: Setting locale failed Posted March 16, 2009 Sometimes you get warnings like this cluttering your terminal. 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 If your system is relatively modern, the trouble is just that your client (workstation) wants to be in a locale (en_CA here) that your server is not prepared for. To prepare the server: sudo locale-gen en_CA.UTF-8 en_CA You should see something like this: Generating locales... en_CA.ISO-8859-1... done en_CA.UTF-8... done Generation complete. If you recently upgraded from a pre-gutsy system, try: sudo update-locale LC_ALL=POSIX LANG=en_CA.UTF-8 This updates Next login, you should be able to run |