<html lang="en">
<head>
<title>Installing GCC</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Installing GCC">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="top" href="#Top">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1988-2017 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, the Front-Cover texts being (a) (see below), and
with the Back-Cover Texts being (b) (see below). A copy of the
license is included in the section entitled "GNU Free Documentation License".
(a) The FSF's Front-Cover Text is:
A GNU Manual
(b) The FSF's Back-Cover Text is:
You have freedom to copy and modify this GNU Manual, like GNU
software. Copies published by the Free Software Foundation raise
funds for GNU development.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<h1 class="settitle">Installing GCC</h1>
The latest version of this document is always available at
<a href="http://gcc.gnu.org/install/">http://gcc.gnu.org/install/</a>.
It refers to the current development sources, instructions for
specific released versions are included with the sources.
<p>This document describes the generic installation procedure for GCC as well
as detailing some target specific installation instructions.
<p>GCC includes several components that previously were separate distributions
with their own installation instructions. This document supersedes all
package-specific installation instructions.
<p><em>Before</em> starting the build/install procedure please check the
<a href="specific.html">host/target specific installation notes</a>.
We recommend you browse the entire generic installation instructions before
you proceed.
<p>Lists of successful builds for released versions of GCC are
available at <a href="http://gcc.gnu.org/buildstat.html">http://gcc.gnu.org/buildstat.html</a>.
These lists are updated as new information becomes available.
<p>The installation procedure itself is broken into five steps.
<ol type=1 start=1>
<li><a href="prerequisites.html">Prerequisites</a>
<li><a href="download.html">Downloading the source</a>
<li><a href="configure.html">Configuration</a>
<li><a href="build.html">Building</a>
<li><a href="test.html">Testing</a> (optional)
<li><a href="finalinstall.html">Final install</a>
</ol>
<p>Please note that GCC does not support ‘<samp><span class="samp">make uninstall</span></samp>’ and probably
won't do so in the near future as this would open a can of worms. Instead,
we suggest that you install GCC into a directory of its own and simply
remove that directory when you do not need that specific version of GCC
any longer, and, if shared libraries are installed there as well, no
more binaries exist that use them.
<p>There are also some <a href="old.html">old installation instructions</a>,
which are mostly obsolete but still contain some information which has
not yet been merged into the main part of this manual.
<p><hr />
<p><a href="./index.html">Return to the GCC Installation page</a>
<p>Copyright © 1988-2017 Free Software Foundation, Inc.
<pre class="sp">
</pre>
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, the Front-Cover texts being (a) (see below), and
with the Back-Cover Texts being (b) (see below). A copy of the
license is included in the section entitled “<a href="./gfdl.html">GNU Free Documentation License</a>”.
<p>(a) The FSF's Front-Cover Text is:
<p>A GNU Manual
<p>(b) The FSF's Back-Cover Text is:
<p>You have freedom to copy and modify this GNU Manual, like GNU
software. Copies published by the Free Software Foundation raise
funds for GNU development.
<!-- ***Prerequisites************************************************** -->
<!-- ***Downloading the source************************************************** -->
<!-- ***Configuration*********************************************************** -->
<!-- ***Building**************************************************************** -->
<!-- ***Testing***************************************************************** -->
<!-- ***Final install*********************************************************** -->
<!-- ***Binaries**************************************************************** -->
<!-- ***Specific**************************************************************** -->
<!-- ***Old documentation****************************************************** -->
<!-- ***GFDL******************************************************************** -->
<!-- *************************************************************************** -->
<!-- Part 6 The End of the Document -->
</body></html>