1 |
268 |
jeremybenn |
<html lang="en">
|
2 |
|
|
<head>
|
3 |
|
|
<title>Installing GCC</title>
|
4 |
|
|
<meta http-equiv="Content-Type" content="text/html">
|
5 |
|
|
<meta name="description" content="Installing GCC">
|
6 |
|
|
<meta name="generator" content="makeinfo 4.12">
|
7 |
|
|
<link title="Top" rel="top" href="#Top">
|
8 |
|
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
9 |
|
|
<!--
|
10 |
|
|
Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
|
11 |
|
|
1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
|
12 |
|
|
2008 Free Software Foundation, Inc.
|
13 |
|
|
|
14 |
|
|
Permission is granted to copy, distribute and/or modify this document
|
15 |
|
|
under the terms of the GNU Free Documentation License, Version 1.2 or
|
16 |
|
|
any later version published by the Free Software Foundation; with no
|
17 |
|
|
Invariant Sections, the Front-Cover texts being (a) (see below), and
|
18 |
|
|
with the Back-Cover Texts being (b) (see below). A copy of the
|
19 |
|
|
license is included in the section entitled "GNU Free Documentation License".
|
20 |
|
|
|
21 |
|
|
(a) The FSF's Front-Cover Text is:
|
22 |
|
|
|
23 |
|
|
A GNU Manual
|
24 |
|
|
|
25 |
|
|
(b) The FSF's Back-Cover Text is:
|
26 |
|
|
|
27 |
|
|
You have freedom to copy and modify this GNU Manual, like GNU
|
28 |
|
|
software. Copies published by the Free Software Foundation raise
|
29 |
|
|
funds for GNU development.-->
|
30 |
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
31 |
|
|
<style type="text/css"><!--
|
32 |
|
|
pre.display { font-family:inherit }
|
33 |
|
|
pre.format { font-family:inherit }
|
34 |
|
|
pre.smalldisplay { font-family:inherit; font-size:smaller }
|
35 |
|
|
pre.smallformat { font-family:inherit; font-size:smaller }
|
36 |
|
|
pre.smallexample { font-size:smaller }
|
37 |
|
|
pre.smalllisp { font-size:smaller }
|
38 |
|
|
span.sc { font-variant:small-caps }
|
39 |
|
|
span.roman { font-family:serif; font-weight:normal; }
|
40 |
|
|
span.sansserif { font-family:sans-serif; font-weight:normal; }
|
41 |
|
|
--></style>
|
42 |
|
|
</head>
|
43 |
|
|
<body>
|
44 |
|
|
<h1 class="settitle">Installing GCC</h1>
|
45 |
|
|
The latest version of this document is always available at
|
46 |
|
|
<a href="http://gcc.gnu.org/install/">http://gcc.gnu.org/install/</a>.
|
47 |
|
|
|
48 |
|
|
<p>This document describes the generic installation procedure for GCC as well
|
49 |
|
|
as detailing some target specific installation instructions.
|
50 |
|
|
|
51 |
|
|
<p>GCC includes several components that previously were separate distributions
|
52 |
|
|
with their own installation instructions. This document supersedes all
|
53 |
|
|
package specific installation instructions.
|
54 |
|
|
|
55 |
|
|
<p><em>Before</em> starting the build/install procedure please check the
|
56 |
|
|
<a href="specific.html">host/target specific installation notes</a>.
|
57 |
|
|
We recommend you browse the entire generic installation instructions before
|
58 |
|
|
you proceed.
|
59 |
|
|
|
60 |
|
|
<p>Lists of successful builds for released versions of GCC are
|
61 |
|
|
available at <a href="http://gcc.gnu.org/buildstat.html">http://gcc.gnu.org/buildstat.html</a>.
|
62 |
|
|
These lists are updated as new information becomes available.
|
63 |
|
|
|
64 |
|
|
<p>The installation procedure itself is broken into five steps.
|
65 |
|
|
|
66 |
|
|
<ol type=1 start=1>
|
67 |
|
|
<li><a href="prerequisites.html">Prerequisites</a>
|
68 |
|
|
<li><a href="download.html">Downloading the source</a>
|
69 |
|
|
<li><a href="configure.html">Configuration</a>
|
70 |
|
|
<li><a href="build.html">Building</a>
|
71 |
|
|
<li><a href="test.html">Testing</a> (optional)
|
72 |
|
|
<li><a href="finalinstall.html">Final install</a>
|
73 |
|
|
</ol>
|
74 |
|
|
|
75 |
|
|
<p>Please note that GCC does not support ‘<samp><span class="samp">make uninstall</span></samp>’ and probably
|
76 |
|
|
won't do so in the near future as this would open a can of worms. Instead,
|
77 |
|
|
we suggest that you install GCC into a directory of its own and simply
|
78 |
|
|
remove that directory when you do not need that specific version of GCC
|
79 |
|
|
any longer, and, if shared libraries are installed there as well, no
|
80 |
|
|
more binaries exist that use them.
|
81 |
|
|
|
82 |
|
|
<p>There are also some <a href="old.html">old installation instructions</a>,
|
83 |
|
|
which are mostly obsolete but still contain some information which has
|
84 |
|
|
not yet been merged into the main part of this manual.
|
85 |
|
|
|
86 |
|
|
<p><hr />
|
87 |
|
|
<p><a href="./index.html">Return to the GCC Installation page</a>
|
88 |
|
|
|
89 |
|
|
<p>Copyright © 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
|
90 |
|
|
1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
|
91 |
|
|
2008 Free Software Foundation, Inc.
|
92 |
|
|
<pre class="sp">
|
93 |
|
|
|
94 |
|
|
</pre>
|
95 |
|
|
Permission is granted to copy, distribute and/or modify this document
|
96 |
|
|
under the terms of the GNU Free Documentation License, Version 1.2 or
|
97 |
|
|
any later version published by the Free Software Foundation; with no
|
98 |
|
|
Invariant Sections, the Front-Cover texts being (a) (see below), and
|
99 |
|
|
with the Back-Cover Texts being (b) (see below). A copy of the
|
100 |
|
|
license is included in the section entitled “<a href="./gfdl.html">GNU Free Documentation License</a>”.
|
101 |
|
|
|
102 |
|
|
<p>(a) The FSF's Front-Cover Text is:
|
103 |
|
|
|
104 |
|
|
<p>A GNU Manual
|
105 |
|
|
|
106 |
|
|
<p>(b) The FSF's Back-Cover Text is:
|
107 |
|
|
|
108 |
|
|
<p>You have freedom to copy and modify this GNU Manual, like GNU
|
109 |
|
|
software. Copies published by the Free Software Foundation raise
|
110 |
|
|
funds for GNU development.
|
111 |
|
|
|
112 |
|
|
<!-- ***Prerequisites************************************************** -->
|
113 |
|
|
<!-- ***Downloading the source************************************************** -->
|
114 |
|
|
<!-- ***Configuration*********************************************************** -->
|
115 |
|
|
<!-- ***Building**************************************************************** -->
|
116 |
|
|
<!-- ***Testing***************************************************************** -->
|
117 |
|
|
<!-- ***Final install*********************************************************** -->
|
118 |
|
|
<!-- ***Binaries**************************************************************** -->
|
119 |
|
|
<!-- ***Specific**************************************************************** -->
|
120 |
|
|
<!-- ***Old documentation****************************************************** -->
|
121 |
|
|
<!-- ***GFDL******************************************************************** -->
|
122 |
|
|
<!-- *************************************************************************** -->
|
123 |
|
|
<!-- Part 6 The End of the Document -->
|
124 |
|
|
</body></html>
|
125 |
|
|
|