2015年1月16日 星期五

[LFS] 6.9. Glibc-2.20 1

1. Download Glibc-2.20 2

2. Copy glibc-2.20.tar.gz to $LFS/tmp
3. Into QEMU emulation user mode again
cd tmp
mkdir -v /tmp/glibc-build
cd /tmp/glibc-build

4. Produce Make file under /tmp/glibc-build

../glibc-2.20/configure    \
    --prefix=/usr          \
    --disable-profile      \
    --enable-kernel=2.6.32 \
    --enable-obsolete-rpc

5. Install Package
make (This step will take a long time around 2~3 hours.)
 
make install
6. When execute localedef
 
localedef
/lib/ld-linux-armhf.so.3: No such file or directory
root:/# ln -sv /tools/lib/ld-linux-armhf.so.3 /lib/ld-linux-armhf.so.3
'/lib/ld-linux-armhf.so.3' -> '/tools/lib/ld-linux-armhf.so.3'

7. Following instructions will install the minimum set of locales necessary for the optimal coverage of tests
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_GB -f UTF-8 en_GB.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 it_IT -f UTF-8 it_IT.UTF-8
localedef -i ja_JP -f EUC-JP ja_JP
localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R
localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
localedef -i zh_CN -f GB18030 zh_CN.GB18030
8. When this file is missing or corrupt, the Glibc defaults do not work well in a networked environment.
cat > /etc/nsswitch.conf << "EOF"
# Begin /etc/nsswitch.conf

passwd: files
group: files
shadow: files

hosts: files dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

# End /etc/nsswitch.conf
EOF
9.  More library not in /lib and /usr/lib, using following command to include.

cat > /etc/ld.so.conf << "EOF"
# Begin /etc/ld.so.conf
/usr/local/lib
/opt/lib
EOF


Reference:


0 意見:

張貼留言