LFS 学习日记(第六章安装基本系统软件之 Flex 至 Make 安装 )

2010年09月29日 星期三
/LFS6.6/LFS-BOOK-6.6-HTML/chapter06/flex.html
6.40. Flex-2.5.35

time { ./configure --prefix=/usr && make; } 2>&1 | tee /backup/installlogs/6flex.make.log
real    0m21.937s
user    0m4.744s
sys    0m17.681s

time { make check; } 2>&1 | tee /backup/installlogs/6flex.check.log
real    0m43.510s
user    0m15.505s
sys    0m18.353s

time { make install; } 2>&1 | tee /backup/installlogs/6flex.install.log
real    0m1.440s
user    0m0.076s
sys    0m1.208s

question: exec /usr/bin/flex -l "$@"
"$@" 表示把传递的多个参数依然视为分别的多个参数
"$*" 把传递的多个参数视为一个整体的字符串

todo: 理解 "$*" 和 "$@" 的区别
参考:http://tldp.org/LDP/abs/html/internalvariables.html#APPREF

/LFS6.6/LFS-BOOK-6.6-HTML/chapter06/gettext.html
6.41. Gettext-0.17

time { ./configure --prefix=/usr \
            --docdir=/usr/share/doc/gettext-0.17 && make; } 2>&1 | tee /backup/installlogs/6gettext.make.log
real    3m43.463s
user    1m20.281s
sys    3m45.370s

time { make check; } 2>&1 | tee /backup/installlogs/6gettext.check.log
real    13m17.131s
user    1m9.196s
sys    11m22.875s

time { make install; } 2>&1 | tee /backup/installlogs/6gettext.install.log
real    0m24.410s
user    0m2.120s
sys    0m25.686s

/LFS6.6/LFS-BOOK-6.6-HTML/chapter06/groff.html
6.42. Groff-1.20.1

time { PAGE=A4 ./configure --prefix=/usr && make; } 2>&1 | tee /backup/installlogs/6groff.make.log
real    0m53.954s
user    0m57.872s
sys    0m28.670s

time { make docdir=/usr/share/doc/groff-1.20.1 install; } 2>&1 | tee /backup/installlogs/6groff.install.log
real    0m4.750s
user    0m0.952s
sys    0m6.456s

2010年10月03日 星期日
/LFS-BOOK-6.6-HTML/chapter06/grub.html
6.43. GRUB-1.97.2

time { ../configure --prefix=/usr           \
             --sysconfdir=/etc       \
             --disable-grub-emu      \
             --disable-grub-emu-usb  \
             --disable-grub-fstest   \
             --disable-efiemu && make; } 2>&1 | tee /backup/installlogs/6grub.make.log
real    0m57.538s
user    0m28.186s
sys    0m53.699s

time { make install; } 2>&1 | tee /backup/installlogs/6grub.install.log
real    0m2.622s
user    0m0.408s
sys    0m2.132s

/LFS-BOOK-6.6-HTML/chapter06/gzip.html
6.44. Gzip-1.4

time { ./configure --prefix=/usr --bindir=/bin && make; } 2>&1 | tee /backup/installlogs/6gzip.make.log
real    0m30.138s
user    0m7.152s
sys    0m20.429s

time { make check; } 2>&1 | tee /backup/installlogs/6gzip.check.log
real    0m1.000s
user    0m0.248s
sys    0m1.096s

time { make install; } 2>&1 | tee /backup/installlogs/6gzip.install.log
real    0m0.932s
user    0m0.256s
sys    0m0.680s

/LFS-BOOK-6.6-HTML/chapter06/iproute2.html
6.45. IPRoute2-2.6.31

time { make DESTDIR=; } 2>&1 | tee /backup/installlogs/6iproute2.make.log
real    0m11.089s
user    0m12.117s
sys    0m6.456s

time { make DESTDIR= SBINDIR=/sbin MANDIR=/usr/share/man \
     DOCDIR=/usr/share/doc/iproute2-2.6.31 install; } 2>&1 | tee /backup/installlogs/6iproute2.install.log
real    0m0.549s
user    0m0.064s
sys    0m0.212s

todo: 有需要时深入学习 iproute2 包其中的命令

2010年10月04日 星期一

/LFS-BOOK-6.6-HTML/chapter06/kbd.html
6.46. Kbd-1.15.1
time { ./configure --prefix=/usr --datadir=/lib/kbd && make; } 2>&1 | tee /backup/installlogs/6kbd.make.log
real    0m28.891s
user    0m4.908s
sys    0m10.593s

time { make install; } 2>&1 | tee /backup/installlogs/6kbd.install.log
real    0m5.557s
user    0m0.436s
sys    0m1.160s

question: unicode_start
Puts the keyboard and console in UNICODE mode. Don't use this program unless your keymap file is in the ISO-8859-1 encoding. For other encodings, this utility produces incorrect results.
中文用的 keymap 是什么编码?

/LFS-BOOK-6.6-HTML/chapter06/less.html
6.47. Less-436
time { ./configure --prefix=/usr --sysconfdir=/etc && make; } 2>&1 | tee /backup/installlogs/6less.make.log
real    0m13.316s
user    0m9.605s
sys    0m7.984s

time { make install; } 2>&1 | tee /backup/installlogs/6less.install.log
real    0m0.114s
user    0m0.036s
sys    0m0.048s

/LFS-BOOK-6.6-HTML/chapter06/make.html
6.48. Make-3.81

time { ./configure --prefix=/usr && make; } 2>&1 | tee /backup/installlogs/6make.make.log
real    0m18.768s
user    0m15.913s
sys    0m12.309s

time { make check; } 2>&1 | tee /backup/installlogs/6make.check.log
real    0m33.439s
user    0m2.148s
sys    0m3.060s

time { make install; } 2>&1 | tee /backup/installlogs/6make.install.log
real    0m0.935s
user    0m0.516s
sys    0m0.564s