OpenVZ Forum


Home » General » Support » Problem with language settings in a VE
Problem with language settings in a VE [message #15549] Sun, 05 August 2007 13:32 Go to next message
marc1911 is currently offline  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 [message #15563 is a reply to message #15549] Sun, 05 August 2007 22:09 Go to previous messageGo to next message
marc1911 is currently offline  marc1911
Messages: 11
Registered: August 2007
Junior Member
I've done some more testing and I can't find any reason why I'm receiving this errors. When I give the command locale -a, the same errors come up. When I give the command in the host, these errors do not apear.

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

There must be missing some files, but which? Anyone? Confused
Re: Problem with language settings in a VE [message #15571 is a reply to message #15563] Mon, 06 August 2007 08:29 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
I believe your OS teplate can have restiricted set of locales. In this case just add (or re-install) the required packages inside your VE.
Re: Problem with language settings in a VE [message #15593 is a reply to message #15571] Mon, 06 August 2007 15:55 Go to previous messageGo to next message
marc1911 is currently offline  marc1911
Messages: 11
Registered: August 2007
Junior Member
I'm using CentOS 4.4. So which packages are you refering to. I've googled a lot these days to find the answer but I can't find a solution to the problem. Any help?

Re: Problem with language settings in a VE [message #15604 is a reply to message #15593] Tue, 07 August 2007 08:34 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
I believe it is glibc-common package:

# cat /etc/redhat-release
CentOS release 4.2 (Final)
# rpm -qal | grep en_US | grep LC_CTYPE
/usr/lib/locale/en_US.iso885915/LC_CTYPE
/usr/lib/locale/en_US.utf8/LC_CTYPE
/usr/lib/locale/en_US/LC_CTYPE
# rpm -qf /usr/lib/locale/en_US/LC_CTYPE
glibc-common-2.3.4-2.13
Re: Problem with language settings in a VE (*SOLVED*) [message #15629 is a reply to message #15549] Tue, 07 August 2007 13:07 Go to previous messageGo to next message
marc1911 is currently offline  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 #15631 is a reply to message #15629] Tue, 07 August 2007 13:56 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
# rpm -qf /etc/sysconfig/i18n
file /etc/sysconfig/i18n is not owned by any package

As far as I understand this file copied from HW node into template.

Therefore it's interesting to know the following:
- what distribution is installed on your HW node?
- could you please show /etc/sysconfig/i18n from your HW node?
- could you please describe how you installed CentOs 4 template?

thank you,
Vasily Averin

Re: Problem with language settings in a VE (*SOLVED*) [message #15632 is a reply to message #15631] Tue, 07 August 2007 20:07 Go to previous message
marc1911 is currently offline  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
Previous Topic: Unable to set capability: Operation not permitted
Next Topic: *SOLVED* network performance
Goto Forum:
  


Current Time: Fri Aug 16 18:37:57 GMT 2024

Total time taken to generate the page: 0.02966 seconds