Problem with language settings in a VE [message #15549] |
Sun, 05 August 2007 13:32 |
marc1911
Messages: 11 Registered: August 2007
|
Junior Member |
|
|
Hi there,
When I'm trying to start openoffice in a VE (I've already mastered the problem with X-server with help from this forum!) I'm receiving an error that has everything todo with the locales setting of the VE. See output beneath:
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
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=
How do I need to fix this locales problem?
[Updated on: Sun, 05 August 2007 22:04] Report message to a moderator
|
|
|
|
|
|
|
Re: Problem with language settings in a VE (*SOLVED*) [message #15629 is a reply to message #15549] |
Tue, 07 August 2007 13:07 |
marc1911
Messages: 11 Registered: August 2007
|
Junior Member |
|
|
Thanks Vaverin for your contribution in finding a solution.
I've finally found the problem. At the very begin of my problems I copied the /etc/sysconfig/i18n file from the OpenVZ Host to the exact same location on the VPS. I didn't understand why this file was missing on the VPS and forgot all about it in my quest for a sollution.
The solution I found is as follows:
1) remove the /etc/sysconfig/i18n on the VPS
2) (on the VPS)# localedef -i en_US -f ISO-8859-1 en_US
Check:
# locale -a
Instead of the previous error messages I get the following output:
C
POSIX
en_US
en_US.iso88591
Everything is oke now, but i still do not know why the file i18n doesn't exist on the VPS?
Anybody?
Regards,
Marc
[Updated on: Tue, 07 August 2007 13:09] Report message to a moderator
|
|
|
|
Re: Problem with language settings in a VE (*SOLVED*) [message #15632 is a reply to message #15631] |
Tue, 07 August 2007 20:07 |
marc1911
Messages: 11 Registered: August 2007
|
Junior Member |
|
|
Hi Vasily,
Here are the answers:
1) HW distribution = CentOS 4.4 x86
2) Content of the file /etc/sysconfig/i18n:
LANG="en_US"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"
3)Installation of CentOS template as follows:
- yum install vztmpl-centos-4
- vzctl create 201 --ostemplate centos-4-i386-default
Regards,
Marc
|
|
|