LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-20-2011, 08:55 AM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,655
Blog Entries: 1

Rep: Reputation: 241Reputation: 241Reputation: 241
Section 7.8 Book 6.7 lfs build


I have reached section 7.8 and I,m at a loss what to do? I put in the command
Code:
locale -a
return is
Code:
C  POSIX
I,m at a loss how to fill in the next bit
Code:
LC_ALL=<locale name> locale charmap

Last edited by spiky0011; 02-20-2011 at 08:57 AM.
 
Old 02-20-2011, 09:27 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,

If the output of the locale -a command only shows C and POSIX, something is wrong. During the end of chapter 6.9.1 you had the choice of installing a minimal set of locales necessary for the optimal coverage of tests or a full supported set.

Check if the following file is present on your system: /usr/lib/locale/locale-archive. If it is not, that is your problem (which could also account for some of your previous problems....).

I'm still able to add to my minimal set after the build, so you could try executing either of the two options given in chapter 6.9.1.

Hope this helps.
 
Old 02-20-2011, 09:45 AM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,655
Blog Entries: 1

Original Poster
Rep: Reputation: 241Reputation: 241Reputation: 241
Spot on dont know why I didn't do that, ok I see what missed can I just do the command
Code:
mkdir -pv /usr/lib/locale
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 take it this will install GB version or would I be better installing all as the next command states. Also would I have to change the chroot enviroment back to the 1st 1 or stay as I am
 
Old 02-20-2011, 09:55 AM   #4
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,
Quote:
Originally Posted by spiky0011 View Post
Spot on dont know why I didn't do that, ok I see what missed can I just do the command
Code:
mkdir -pv /usr/lib/locale
.
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
.
I take it this will install GB version or would I be better installing all as the next command states.
There are 4 English based locales in the minimal set. But the en_GB is not present. It depends on what you want/need, so it is up to you.

Quote:
Also would I have to change the chroot enviroment back to the 1st 1 or stay as I am
No chrooted environment needed, you can execute the commands as is.

Hope this helps.
 
Old 02-20-2011, 11:08 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,655
Blog Entries: 1

Original Poster
Rep: Reputation: 241Reputation: 241Reputation: 241
Ok I have installed that checks ok. Now I,m at
Code:
cat > /etc/profile << "EOF"
# Begin /etc/profile
export LANG=<ll>_<CC>.<charmap><@modifiers>
# End /etc/profile
EOF
For the life of me I cannot work out what to fill in "export LANG=<ll>_<CC>.<charmap><@modifiers>" I selected en_US.iso88591.
LANG=English <cc>.ISO-8859-1 <modifiers>
 
Old 02-20-2011, 11:15 AM   #6
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,

Code:
export LANG=en_US.ISO-8859-1
The <@modifiers> part is optional and probably not needed in your case.

Hope this helps.
 
1 members found this post helpful.
  


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
Problem with section 8.4.3 of LFS 6.6 book (Testing the Grub configuration) jackplughd Linux From Scratch 1 04-14-2010 08:24 AM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM
GCC command not found LFS book 6.3, section 6.7.1 cdc5205 Linux From Scratch 1 08-16-2008 01:56 PM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM
LFS 4.1 book install hung at section 6.14: Glibc-2.3.1 SparceMatrix Linux From Scratch 4 05-30-2003 04:56 PM


All times are GMT -5. The time now is 04:58 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