LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 03-04-2011, 04:28 PM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
Add extra locale AFTER LFS is built


Ok having built LFS I have a problem ( my own fault) in section 6.9.1 of book 6.7 Locales I only installed the set of Locales shown
Code:
localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
localedef -i de_DE -f ISO-8859-1 de_DE
localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
localedef -i de_DE -f UTF-8 de_DE.UTF-8
localedef -i en_HK -f ISO-8859-1 en_HK
localedef -i en_PH -f ISO-8859-1 en_PH
localedef -i en_US -f ISO-8859-1 en_US
localedef -i en_US -f UTF-8 en_US.UTF-8
localedef -i es_MX -f ISO-8859-1 es_MX
localedef -i fa_IR -f UTF-8 fa_IR
localedef -i fr_FR -f ISO-8859-1 fr_FR
localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
localedef -i it_IT -f ISO-8859-1 it_IT
localedef -i ja_JP -f EUC-JP ja_JP
localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
localedef -i zh_CN -f GB18030 zh_CN.GB18030
I would like to install en_GB/ISO-8859-1 \
Is this possible?
This is located in glibc/sources/glibc-2.12.1/localdata/SUPPORTED
I extacted the glibc to my other laptop.
I have googled but I dont get anything on installing new locales, I did think of loading disc and go back and just do the install of all locales as per book,
Or use the command
Code:
localedef -i en_GB -f ISO-8859-1 en_GB
from usr/bin/locale
I can copy the glibc folder to LFS but cant find the commands to write
to install the extra locale.
I know now I should of installed ALL locales but I didn't think I would make it to the finished build
 
Old 03-05-2011, 05:00 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Adding extra locales after finishing LFS should not be a problem.

Executing the localedef -i en_GB -f ISO-8859-1 en_GB command as root should add the following 2 entries to the output of locale -a:

en_GB
en_GB.iso88591

Nothing else needs to be done to add en_GB (although you might want to change /etc/sysconfig/console and/or /etc/profile to use them). The chosen locale must exist in /usr/share/locale (en_GB does).

Hope this helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to boot the newly built LFS. luckybtn Linux From Scratch 3 09-13-2008 06:53 PM
Just built LFS and alittle dissapointed.. proc Linux From Scratch 6 07-15-2007 10:03 AM
A little disappointed, has anyone built the SVN version of LFS? z3r0.0v3rrid3 Linux From Scratch 5 06-29-2007 07:28 AM
i want to run python program on new built lfs shankara Linux From Scratch 1 02-03-2006 03:42 PM
Yay I Just Built My First LFS AFI_Flame Linux From Scratch 9 06-15-2004 11:35 PM


All times are GMT -5. The time now is 08:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration