当我运行:如何设置的区域设置,而从9.3升级到PostgreSQL的9.4
sudo pg_upgradecluster 9.3 main
我得到这个错误:
> perl: warning: Falling back to the standard locale ("C"). perl:
> warning: Setting locale failed. perl: warning: Please check that your
> locale settings: LANGUAGE = (unset), 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. Error: Could not create target cluster
如何改变才能执行此命令的语言环境?
1)这有什么好做用Perl或PostgreSQL。如果你运行'locale',你会得到相同的警告。 2)问题并没有阻止程序运行。 Perl简单地使用了一个不同于本地的补偿。 – ikegami