1 <section xmlns="http://docbook.org/ns/docbook" version="5.0"
2 xml:id="manual.intro.setup.prereq" xreflabel="Prerequisites">
3 <?dbhtml filename="prerequisites.html"?>
5 <info><title>Prerequisites</title>
7 <keyword>ISO C++</keyword>
8 <keyword>Prerequisites</keyword>
15 Because libstdc++ is part of GCC, the primary source for
16 installation instructions is
17 <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://gcc.gnu.org/install/">the GCC install page</link>.
18 In particular, list of prerequisite software needed to build the library
19 <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://gcc.gnu.org/install/prerequisites.html">
20 starts with those requirements.</link> The same pages also list
21 the tools you will need if you wish to modify the source.
25 Additional data is given here only where it applies to libstdc++.
28 <para>As of GCC 4.0.1 the minimum version of binutils required to build
29 libstdc++ is <code>2.15.90.0.1.1</code>.
30 Older releases of libstdc++ do not require such a recent version,
31 but to take full advantage of useful space-saving features and
32 bug-fixes you should use a recent binutils whenever possible.
33 The configure process will automatically detect and use these
34 features if the underlying support is present.
38 To generate the API documentation from the sources you will need
39 Doxygen, see <link linkend="appendix.porting.doc">Documentation
40 Hacking</link> in the appendix for full details.
44 Finally, a few system-specific requirements:
53 If GCC 3.1.0 or later on is being used on GNU/Linux, an attempt
54 will be made to use "C" library functionality necessary for
55 C++ named locale support. For GCC 4.6.0 and later, this
56 means that glibc 2.3 or later is required.
60 If the 'gnu' locale model is being used, the following
61 locales are used and tested in the libstdc++ testsuites.
62 The first column is the name of the locale, the second is
63 the character set it is expected to use.
67 de_DE@euro ISO-8859-15
72 en_US.ISO-8859-1 ISO-8859-1
73 en_US.ISO-8859-15 ISO-8859-15
78 fr_FR@euro ISO-8859-15
82 ru_RU.ISO-8859-5 ISO-8859-5
89 <para>Failure to have installed the underlying "C" library
90 locale information for any of the above regions means that
91 the corresponding C++ named locale will not work: because of
92 this, the libstdc++ testsuite will skip named locale tests
93 which need missing information. If this isn't an issue, don't
94 worry about it. If a named locale is needed, the underlying
95 locale information must be installed. Note that rebuilding
96 libstdc++ after "C" locales are installed is not necessary.
100 To install support for locales, do only one of the following:
105 <para>install all locales</para>
108 <para>install just the necessary locales</para>
111 <para>with Debian GNU/Linux:</para>
112 <para> Add the above list, as shown, to the file
113 <code>/etc/locale.gen</code> </para>
114 <para> run <code>/usr/sbin/locale-gen</code> </para>
117 <para>on most Unix-like operating systems:</para>
118 <para><code> localedef -i de_DE -f ISO-8859-1 de_DE </code></para>
119 <para>(repeat for each entry in the above list) </para>
123 Instructions for other operating systems solicited.