2 % This is part of LFSbookja package.
4 % This is a CTIE change file for the original XML source of the LFSbook.
7 <?xml version="1.0" encoding="ISO-8859-1"?>
9 <?xml version="1.0" encoding="UTF-8"?>
13 <indexterm zone="ch-tools-ncurses">
14 <primary sortas="a-Ncurses">Ncurses</primary>
15 <secondary>tools</secondary>
18 <indexterm zone="ch-tools-ncurses">
19 <primary sortas="a-Ncurses">Ncurses</primary>
20 <secondary>&Tools;</secondary>
25 <title>Installation of Ncurses</title>
27 <title>&InstallationOf1;Ncurses&InstallationOf2;</title>
31 <para>First, ensure that <command>gawk</command> is found first during configuration:</para>
34 ビルドにあたって <command>gawk</command> が必ず最初に見つかるようにします。
39 <para>Then, run the following commands to build the <quote>tic</quote>
40 program on the build host:</para>
43 そして以下のコマンドを実行して、ビルドホスト上に<quote>tic</quote>プログラムをビルドします。
48 <para>Prepare Ncurses for compilation:</para>
50 <para>&PreparePackage1;Ncurses&PreparePackage2;</para>
54 <title>The meaning of the new configure options:</title>
56 <title>&MeaningOfOption1;configure&MeaningOfOption2;</title>
59 @x --with-manpage-format=normal
60 <para>This prevents Ncurses installing compressed manual
61 pages, which may happen if the host distribution itself
62 has compressed manual pages.</para>
65 本パラメーターは Ncurses が圧縮された man ページをインストールしないようにします。
66 ホストディストリビューションそのものが圧縮 man ページを利用していると、同じようになってしまうからです。
71 <para>This ensures that Ncurses does not build support for the Ada
72 compiler which may be present on the host but will not be available
73 once we enter the <command>chroot</command> environment.</para>
76 このオプションは Ncurses に対して Ada コンパイラーのサポート機能をビルドしないよう指示します。
77 この機能はホストシステムでは提供されているかもしれませんが、<command>chroot</command> 環境に入ってしまうと利用できなくなります。
82 <para>This switch prevents the building system from stripping
83 the programs using <command>strip</command> program from the host.
84 Using host tools on cross-compiled program can cause failure.</para>
87 本スイッチは、ホスト上にある <command>strip</command> を使って、ビルドシステム内のプログラムのストリップを行わないようにします。
88 クロスコンパイルされたプログラムに対して、ホスト上のツールを使うと、ビルド失敗の原因になります。
93 <para>This switch causes wide-character libraries (e.g., <filename
94 class="libraryfile">libncursesw.so.&ncurses-version;</filename>)
95 to be built instead of normal ones (e.g., <filename
96 class="libraryfile">libncurses.so.&ncurses-version;</filename>).
97 These wide-character libraries are usable in both multibyte and
98 traditional 8-bit locales, while normal libraries work properly
99 only in 8-bit locales. Wide-character and normal libraries are
100 source-compatible, but not binary-compatible.</para>
103 本スイッチは通常のライブラリ (<filename
104 class="libraryfile">libncurses.so.&ncurses-version;</filename>) ではなくワイド文字対応のライブラリ (<filename
105 class="libraryfile">libncursesw.so.&ncurses-version;</filename>) をビルドすることを指示します。
106 ワイド文字対応のライブラリは、マルチバイトロケールと従来の 8ビットロケールの双方に対して利用可能です。
107 通常のライブラリでは 8ビットロケールに対してしか動作しません。
108 ワイド文字対応と通常のものとでは、ソース互換があるもののバイナリ互換がありません。
113 <para>This switch disables building and installing most static libraries.
117 本スイッチは、ほとんどのスタティックライブラリをビルドせずインストールもしません。
122 <para>Compile the package:</para>
124 <para>&CompileThePackage;</para>
128 <para>Install the package:</para>
130 <para>&InstallThePackage;</para>
134 <para>Remove an unneeded static library not handled by
135 <command>configure</command>:</para>
138 <command>configure</command> が扱っていない不要なスタティックライブラリを削除します。
143 <title>The meaning of the install options:</title>
145 <title>&MeaningOfOption1;install&MeaningOfOption2;</title>
148 @x TIC_PATH=$(pwd)/build/progs/tic
149 <para>We need to pass the path of the just built
150 <command>tic</command> able to run on the building machine, so that
151 the terminal database can be created without errors.</para>
154 ビルドマシン上において、作り出したばかりの <command>tic</command> のパスを示すことが必要です。
155 こうすることで terminal データベースがエラーなく生成できることになります。
159 @x echo "INPUT(-lncursesw)" > $LFS/usr/lib/libncurses.so
160 <para>The <filename>libncurses.so</filename> library is needed by
161 a few packages we will build soon. We create this small linker
162 script, as this is what is done in <xref
163 linkend="chapter-building-system"/>.</para>
166 パッケージの中で、わずかですが <filename>libncurses.so</filename> を必要としているものがあります。
168 ここでこの小さなリンカースクリプトを生成します。
169 これは <xref linkend="chapter-building-system"/> においてビルドします。
174 <para>Details on this package are located in
175 <xref linkend="contents-ncurses" role="."/></para>
178 &Details1;<xref linkend="contents-ncurses" role=""/>&Details2;