| |
| Linux From Scratch: ������ 4.0 | ||
|---|---|---|
| ����� | ����� 5. ���������� ������� LFS | ������ |
��������������� ����� ����������: 1 SBU |
����� ��� ��� ���������� Bash, ���������, ��� � ����� ������� ������������ ���� ����� /usr/lib/libcurses.a � usr/lib/libncurses.a. ���� ��� ����������� - LFS system, ��� ����� ������ ���� �� ����� ��� �������, ��� �� � �������� ��������� ����������� �����.
���� ���� ������ ���, ������� ���������� ����� ���������� Ncurses, ��� ������ �������� ncurses-dev. ���� ���� ����� ��� ����������, ��� �� ������ ��� ��� ����������, ��������� ������� ���� ���� ������ ��� ���. �������� ���� libcurses.a �����������. � ����� ������, �������� ������������� ������ libcurses.a, �������� ��������� ������� � ������ ������������ root:
ln -s libncurses.a /usr/lib/libcurses.a |
������ ����� ���������� ����������� Bash:
./configure --enable-static-link \ |
���� ������ make install ������ ��������� ��������� �� �������:
install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'
usage: install-info [--version] [--help] [--debug] [--maxwidth=nnn]
[--section regexp title] [--infodir=xxx] [--align=nnn]
[--calign=nnn] [--quiet] [--menuentry=xxx]
[--info-dir=xxx]
[--keep-old] [--description=xxx] [--test]
[--remove] [--] filename
make[1]: *** [install] Error 1
make[1]: Leaving directory `/mnt/lfs/usr/src/bash-2.05a/doc'
make: [install] Error 2 (ignored)
��� ��������, ��� � ��� Debian-2.2 (potato), � ������� ������������ ������ ������ ������ texinfo. ������ ������ �� ��������: �������� ������������ ����� ������ ����������� � ����� 6, ��� �������������� bash � ������������� ��������. � ������� ������ Debian (3.0; ��������� ��� ��������� Woody) ��� �������� �����������.
--enable-static-link: ��� ����� configure ��������� �� ������������� ����������� ������.
--prefix=$LFS/static: ��� ����� configure ������������ ��� ����� Bash � ���������� $LFS/static, ������� ����� ����������� /static ����� ����, ��� �� ������ � ������� LFS � ������� ������� chroot ��� ������������.
--with-curses: ��� ����� ��������� bash � ����������� curses ������ ������������ ���������� termcap.
����������
������������� ��������� ����������� ������ bash � libncurses (����� �������
�� � termcap, �.�. � ����� ������ �� ��������������� Bash � ����� 6 � ��������������
libncurses), ������ ��� ������� ������ ���������, ��� ����� Ncurses ����������
���������. � �������� ������, ��� �������� �� ����� ���� ��� �����������
������ Texinfo, �������� ���������� ���������� ncurses, �.�. � termcap ��
����� ���� �����������.
������� && � ����� ������ ������ ��������� �� ��, ��� ��������� ������� ������ ���� ��������� ���� � ��� ������, ���� ���������� ������� ���������� �������� 0 �� ������, �.�. ������� ��������� ��������. � ��� ������ ���� �� ��������� � ���������� ��� ������� � ��������, �� ��������� ���������, ��� ���� ������ ./configure ��� ����, �� ����������� ������� make, � �����, ���� ������� make ���� ����, �� ����������� ������� make install, � �.�.
��������� ��������: ������ 2.05a.
bash, sh (������ �� bash) � bashbug
bash - Bourne-Again SHell, ������ ������������ � Unix �������� ��������� �������������. Bash ��������� ������ �� ������������ �����, � ����������. ������������ ������ ���-����, ������������� ���������� ��������� � ��������� ���, �������� ��������� ���������.
bashbug - ������, ���������� ������������ ���������� � ���������� ��������� �� ������� bash � ����������� �������.
sh - ������������� ������ �� bash. ������ ��������� ��� sh, bash ��������� ������ ������ ������ sh ��� ������� ������������ ���������� POSIX.
��������� ��������: ������ 2.05a.
Bash: bash, sh
Binutils: ar, as, ld, ranlib, size
Diffutils: cmp
Fileutils: chmod, cp, install, ln, ls, mkdir, mv, rm
Gcc: cc, cc1, collect2, cpp0, gcc
Grep: egrep, grep
Make: make
Gawk: awk
Sed: sed
Sh-utils: basename, echo, expr, hostname, sleep, uname
Texinfo: install-info
Textutils: cat, tr, uniq
| ����� | ����� | ������ |
| ��������� ���� ����������� � ������ �������������������� ������������ | ������ | ��������� Binutils-2.13 |