[SOLVED] error generating locale (locale-gen)

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[SOLVED] error generating locale (locale-gen)

Postby cedricmc » Sun Dec 01, 2013 9:10 pm

Hi there,

I am having troubles generating the locales of my system. I did installed it couple hours ago from the last img and it is fully updated. No new packages installed, only updates.

The error message I get is the following:
$this->bbcode_second_pass_code('', '[root@alarmpi ~]# locale-gen
Generating locales...
en_US.UTF-8.../usr/bin/locale-gen: line 41: 272 Killed localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale')

Does anybody have any clue on this? I've googled a bit and looked into this forum and Arch Linux's with little success.

Thanks in advance!

UPDATE: It seems to work with ISO-8859-1 locales.

PS: Some output that may be of help:
$this->bbcode_second_pass_code('', '[root@alarmpi ~]# grep -G -v '^#' /etc/locale.gen
en_US.UTF-8 UTF-8
es_ES.UTF-8 UTF-8
[root@alarmpi ~]#
[root@alarmpi ~]# locale -a
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_COLLATE to default locale: No such file or directory
C
POSIX
[root@alarmpi ~]#
[root@alarmpi ~]# locale
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=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=
')
Last edited by cedricmc on Fri Feb 21, 2014 12:21 pm, edited 1 time in total.
cedricmc
 
Posts: 25
Joined: Sun Dec 01, 2013 8:55 pm

Re: error generating locale (locale-gen)

Postby nikonaum » Sat Dec 14, 2013 3:38 pm

Hello there,
I had the same issue. And was trying to solve it all day. Finally after seeing the log messages with this command $this->bbcode_second_pass_code('', 'journalctl -f ')and saw that the system was out of memory while running the command locale-gen.
So I had to edit $this->bbcode_second_pass_code('', '/boot/config.txt') and uncommented the ##Medium part of the file and at the end I changed $this->bbcode_second_pass_code('', 'gpu_mem_256=128') to $this->bbcode_second_pass_code('', 'gpu_mem_256=64'). By this I had more RAM for the OS and less for VIDEO.
reboot
and then run$this->bbcode_second_pass_code('', ' locale-gen') and then all is ok.
nikonaum
 
Posts: 1
Joined: Sat Dec 14, 2013 11:52 am

Re: error generating locale (locale-gen)

Postby cedricmc » Fri Feb 21, 2014 12:21 pm

Thx nikonaum, your hint worked indeed. However, I do not understand why. Even though
$this->bbcode_second_pass_code('', '# grep gpu_mem /boot/config.txt
gpu_mem_512=316
gpu_mem_256=128')
and I changed it to
$this->bbcode_second_pass_code('', '# grep gpu_mem /boot/config.txt
gpu_mem_512=128
gpu_mem_256=64')
I still have the exact same available memory (I have a RPiB with 512MB)
$this->bbcode_second_pass_code('', 'grep Mem /proc/meminfo
MemTotal: 473840 kB
MemFree: 404256 kB')
Still, the trick did work and locale-gen doesn't run out of memory anymore. Thx!!!

CAUTION: even if the reported min for gpu_mem is 16MB, it seems there is people reporting hangs on boot with less than 32MB.
cedricmc
 
Posts: 25
Joined: Sun Dec 01, 2013 8:55 pm

Re: [SOLVED] error generating locale (locale-gen)

Postby moonman » Sat Feb 22, 2014 3:11 am

The actual min seems to be 48MB. Dynamic mem split may not work all that well, it least it doesn't for me on -latest kernel. I usually disable cwm completely.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 1 guest

cron