On a new copy of Ubuntu 11.04 server I am trying to install PostgreSQL server by apt-get install postgresql. But in the end of installation log I saw:

Error: could not create default cluster. Please create it manually with

  pg_createcluster 8.4 main --start

When I ran this command I saw this message:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Error: The locale requested by the environment is invalid.

And no PostgreSQL server started :(

What I need to do to become happy on this?

link|improve this question
3  
What's the output of "locale -a"? – Milen A. Radev Sep 5 '11 at 17:52
feedback

1 Answer

Luckily for you this is an issue I had to look up my notes on, but you asked it in September 2011.

Check these links - Enlist the help of Google Translate

http://www.thomas-krenn.com/de/wiki/Perl_warning_Setting_locale_failed_unter_Debian

http://www.thomas-krenn.com/de/wiki/Locales_unter_Ubuntu_konfigurieren

https://help.ubuntu.com/community/Locale#List_current_settings

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.