Problems with locales
As many other Linux users, I'm often bugged by messages of missing LC and other locales on a clean install. To put it frank: I want to hit the guy responsible for this error message! Why not just choose some reasonable default?? Maybe I'm naive about this, so if you know why, please comment.
In case you want more info, someone put a better explanation here
This is how I fix it:
localedef -f UTF-8 -i en_US en_US.UTF-8
Here is an example of the annoying error message:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "",
LC_MONETARY = "en_US.UTF-8",
LC_NUMERIC = "en_US.UTF-8",
LC_MESSAGES = "en_US.UTF-8",
LC_COLLATE = "en_US.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LC_TIME = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/usr/lib/postgresql/9.1/bin/psql: invalid option -- 'u'
Try "psql --help" for more information.
Comments
Post a Comment