]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libstdc++-v3/contrib/libstdc++-v3-4.4/doc/xml/manual/prerequisites.xml
update
[l4.git] / l4 / pkg / libstdc++-v3 / contrib / libstdc++-v3-4.4 / doc / xml / manual / prerequisites.xml
1 <sect1 id="manual.intro.setup.prereq" xreflabel="Prerequisites">
2 <?dbhtml filename="prerequisites.html"?>
3  
4 <sect1info>
5   <keywordset>
6     <keyword>
7       ISO C++
8     </keyword>
9     <keyword>
10       Prerequisites
11     </keyword>
12   </keywordset>
13 </sect1info>
14
15 <title>Prerequisites</title>
16
17 <para>
18   Because libstdc++ is part of GCC, the primary source for
19    installation instructions is
20    <ulink url="http://gcc.gnu.org/install/">the GCC install page</ulink>.
21    In particular, list of prerequisite software needed to build the library 
22    <ulink url="http://gcc.gnu.org/install/prerequisites.html">
23    starts with those requirements.</ulink> The same pages also list
24    the tools you will need if you wish to modify the source.
25 </para>
26
27   <para>
28    Additional data is given here only where it applies to libstdc++.
29   </para>
30
31    <para>As of GCC 4.0.1 the minimum version of binutils required to build
32       libstdc++ is <code>2.15.90.0.1.1</code>. You can get snapshots
33       (as well as releases) of binutils from
34       <ulink url="ftp://sources.redhat.com/pub/binutils">
35       ftp://sources.redhat.com/pub/binutils</ulink>.
36       Older releases of libstdc++ do not require such a recent version,
37       but to take full advantage of useful space-saving features and
38       bug-fixes you should use a recent binutils whenever possible.
39       The configure process will automatically detect and use these
40       features if the underlying support is present.
41    </para>
42
43    <para>
44    Finally, a few system-specific requirements: 
45    </para>
46
47    <variablelist>
48       <varlistentry>
49         <term>linux</term>
50         
51         <listitem>
52         <para>
53           If gcc 3.1.0 or later on is being used on linux, an attempt
54           will be made to use "C" library functionality necessary for
55           C++ named locale support.  For gcc 3.2.1 and later, this
56           means that glibc 2.2.5 or later is required and the "C"
57           library de_DE locale information must be installed.
58         </para>
59
60         <para>
61           Note however that the sanity checks involving the de_DE
62           locale are skipped when an explicit --enable-clocale=gnu
63           configure option is used: only the basic checks are carried
64           out, defending against misconfigurations.
65         </para>
66
67         <para>
68           If the 'gnu' locale model is being used, the following
69           locales are used and tested in the libstdc++ testsuites.
70           The first column is the name of the locale, the second is
71           the character set it is expected to use.
72         </para>
73 <programlisting>
74 de_DE               ISO-8859-1
75 de_DE@euro          ISO-8859-15
76 en_HK               ISO-8859-1
77 en_PH               ISO-8859-1
78 en_US               ISO-8859-1
79 en_US.ISO-8859-1    ISO-8859-1
80 en_US.ISO-8859-15   ISO-8859-15
81 en_US.UTF-8         UTF-8
82 es_ES               ISO-8859-1
83 es_MX               ISO-8859-1
84 fr_FR               ISO-8859-1
85 fr_FR@euro          ISO-8859-15
86 is_IS               UTF-8
87 it_IT               ISO-8859-1
88 ja_JP.eucjp         EUC-JP
89 se_NO.UTF-8         UTF-8
90 ta_IN               UTF-8
91 zh_TW               BIG5
92 </programlisting>
93
94       <para>Failure to have the underlying "C" library locale
95       information installed will mean that C++ named locales for the
96       above regions will not work: because of this, the libstdc++
97       testsuite will skip the named locale tests. If this isn't an
98       issue, don't worry about it. If named locales are needed, the
99       underlying locale information must be installed. Note that
100       rebuilding libstdc++ after the "C" locales are installed is not
101       necessary.
102       </para>
103
104       <para>
105         To install support for locales, do only one of the following:
106       </para>
107
108       <itemizedlist>
109         <listitem> 
110           <para>install all locales</para>
111           <itemizedlist>
112             <listitem>
113               <para>with RedHat Linux:
114               </para>
115               <para> <code> export LC_ALL=C </code> 
116               </para>
117               <para> <code> rpm -e glibc-common --nodeps </code> 
118               </para>
119               <para> 
120                 <code> rpm -i --define "_install_langs all"
121                  glibc-common-2.2.5-34.i386.rpm 
122                 </code> 
123               </para>
124             </listitem>
125              <listitem> 
126              <para>
127                Instructions for other operating systems solicited.
128              </para>
129              </listitem>
130           </itemizedlist>
131         </listitem>
132         <listitem> 
133           <para>install just the necessary locales</para>
134           <itemizedlist>
135             <listitem>
136               <para>with Debian Linux:</para>
137               <para> Add the above list, as shown, to the file
138               <code>/etc/locale.gen</code> </para>
139               <para> run <code>/usr/sbin/locale-gen</code> </para>
140             </listitem>
141             <listitem> 
142               <para>on most Unix-like operating systems:</para>
143               <para><code> localedef -i de_DE -f ISO-8859-1 de_DE </code></para>
144               <para>(repeat for each entry in the above list) </para>
145             </listitem>
146             <listitem> 
147             <para>
148                Instructions for other operating systems solicited.
149             </para>
150             </listitem>
151           </itemizedlist>
152         </listitem>
153       </itemizedlist>
154       </listitem>
155       </varlistentry>
156    </variablelist>
157
158 </sect1>