1 <sect1 id="manual.intro.setup.prereq" xreflabel="Prerequisites">
2 <?dbhtml filename="prerequisites.html"?>
15 <title>Prerequisites</title>
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.
28 Additional data is given here only where it applies to libstdc++.
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.
44 Finally, a few system-specific requirements:
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.
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.
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.
75 de_DE@euro ISO-8859-15
79 en_US.ISO-8859-1 ISO-8859-1
80 en_US.ISO-8859-15 ISO-8859-15
85 fr_FR@euro ISO-8859-15
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
105 To install support for locales, do only one of the following:
110 <para>install all locales</para>
113 <para>with RedHat Linux:
115 <para> <code> export LC_ALL=C </code>
117 <para> <code> rpm -e glibc-common --nodeps </code>
120 <code> rpm -i --define "_install_langs all"
121 glibc-common-2.2.5-34.i386.rpm
127 Instructions for other operating systems solicited.
133 <para>install just the necessary locales</para>
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>
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>
148 Instructions for other operating systems solicited.