finalinstall.html revision 1.1.1.3
1<html lang="en"> 2<head> 3<title>Installing GCC: Final installation</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Installing GCC: Final installation"> 6<meta name="generator" content="makeinfo 4.7"> 7<link title="Top" rel="top" href="#Top"> 8<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 9<!-- 10Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 111999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 12 13 Permission is granted to copy, distribute and/or modify this document 14under the terms of the GNU Free Documentation License, Version 1.2 or 15any later version published by the Free Software Foundation; with no 16Invariant Sections, the Front-Cover texts being (a) (see below), and 17with the Back-Cover Texts being (b) (see below). A copy of the 18license is included in the section entitled "GNU Free Documentation License". 19 20(a) The FSF's Front-Cover Text is: 21 22 A GNU Manual 23 24(b) The FSF's Back-Cover Text is: 25 26 You have freedom to copy and modify this GNU Manual, like GNU 27 software. Copies published by the Free Software Foundation raise 28 funds for GNU development.--> 29<meta http-equiv="Content-Style-Type" content="text/css"> 30<style type="text/css"><!-- 31 pre.display { font-family:inherit } 32 pre.format { font-family:inherit } 33 pre.smalldisplay { font-family:inherit; font-size:smaller } 34 pre.smallformat { font-family:inherit; font-size:smaller } 35 pre.smallexample { font-size:smaller } 36 pre.smalllisp { font-size:smaller } 37 span.sc { font-variant:small-caps } 38 span.roman { font-family: serif; font-weight: normal; } 39--></style> 40</head> 41<body> 42<h1 class="settitle">Installing GCC: Final installation</h1> 43Now that GCC has been built (and optionally tested), you can install it with 44<pre class="example"> cd <var>objdir</var>; make install 45</pre> 46 <p>We strongly recommend to install into a target directory where there is 47no previous version of GCC present. 48 49 <p>That step completes the installation of GCC; user level binaries can 50be found in <var>prefix</var><span class="file">/bin</span> where <var>prefix</var> is the value you 51specified with the <span class="option">--prefix</span> to configure (or <span class="file">/usr/local</span> 52by default). (If you specified <span class="option">--bindir</span>, that directory will 53be used instead; otherwise, if you specified <span class="option">--exec-prefix</span>, 54<var>exec-prefix</var><span class="file">/bin</span> will be used.) Headers for the C++ and 55Java libraries are installed in <var>prefix</var><span class="file">/include</span>; libraries 56in <var>libdir</var> (normally <var>prefix</var><span class="file">/lib</span>); internal 57parts of the compiler in <var>libdir</var><span class="file">/gcc-lib</span>; documentation in 58info format in <var>infodir</var> (normally <var>prefix</var><span class="file">/info</span>). 59 60 <p>When installing cross-compilers, GCC's executables 61are not only installed into <var>bindir</var>, that 62is, <var>exec-prefix</var><span class="file">/bin</span>, but additionally into 63<var>exec-prefix</var><span class="file">/</span><var>target-alias</var><span class="file">/bin</span>, if that directory 64exists. Typically, such <dfn>tooldirs</dfn> hold target-specific 65binutils, including assembler and linker. 66 67 <p>Installation into a temporary staging area or into a <span class="command">chroot</span> 68jail can be achieved with the command 69 70<pre class="example"> make DESTDIR=<var>path-to-rootdir</var> install 71</pre> 72 <p class="noindent">where <var>path-to-rootdir</var> is the absolute path of 73a directory relative to which all installation paths will be 74interpreted. Note that the directory specified by <code>DESTDIR</code> 75need not exist yet; it will be created if necessary. 76 77 <p>There is a subtle point with tooldirs and <code>DESTDIR</code>: 78If you relocate a cross-compiler installation with 79e.g. <span class="samp">DESTDIR=</span><var>rootdir</var>, then the directory 80<var>rootdir</var><span class="file">/</span><var>exec-prefix</var><span class="file">/</span><var>target-alias</var><span class="file">/bin</span> will 81be filled with duplicated GCC executables only if it already exists, 82it will not be created otherwise. This is regarded as a feature, 83not as a bug, because it gives slightly more control to the packagers 84using the <code>DESTDIR</code> feature. 85 86 <p>If you built a released version of GCC using <span class="samp">make bootstrap</span> then please 87quickly review the build status page for your release, available from 88<a href="http://gcc.gnu.org/buildstat.html">http://gcc.gnu.org/buildstat.html</a>. 89If your system is not listed for the version of GCC that you built, 90send a note to 91<a href="mailto:gcc@gcc.gnu.org">gcc@gcc.gnu.org</a> indicating 92that you successfully built and installed GCC. 93Include the following information: 94 95 <ul> 96<li>Output from running <var>srcdir</var><span class="file">/config.guess</span>. Do not send us 97that file itself, just the one-line output from running it. 98 99 <li>The output of <span class="samp">gcc -v</span> for your newly installed gcc. 100This tells us which version of GCC you built and the options you passed to 101configure. 102 103 <li>Whether you enabled all languages or a subset of them. If you used a 104full distribution then this information is part of the configure 105options in the output of <span class="samp">gcc -v</span>, but if you downloaded the 106“core” compiler plus additional front ends then it isn't apparent 107which ones you built unless you tell us about it. 108 109 <li>If the build was for GNU/Linux, also include: 110 <ul> 111<li>The distribution name and version (e.g., Red Hat 7.1 or Debian 2.2.3); 112this information should be available from <span class="file">/etc/issue</span>. 113 114 <li>The version of the Linux kernel, available from <span class="samp">uname --version</span> 115or <span class="samp">uname -a</span>. 116 117 <li>The version of glibc you used; for RPM-based systems like Red Hat, 118Mandrake, and SuSE type <span class="samp">rpm -q glibc</span> to get the glibc version, 119and on systems like Debian and Progeny use <span class="samp">dpkg -l libc6</span>. 120</ul> 121 For other systems, you can include similar information if you think it is 122relevant. 123 124 <li>Any other information that you think would be useful to people building 125GCC on the same configuration. The new entry in the build status list 126will include a link to the archived copy of your message. 127</ul> 128 129 <p>We'd also like to know if the 130<a href="specific.html">host/target specific installation notes</a> 131didn't include your host/target information or if that information is 132incomplete or out of date. Send a note to 133<a href="mailto:gcc@gcc.gnu.org">gcc@gcc.gnu.org</a> telling us how the information should be changed. 134 135 <p>If you find a bug, please report it following our 136<a href="../bugs.html">bug reporting guidelines</a>. 137 138 <p>If you want to print the GCC manuals, do <span class="samp">cd </span><var>objdir</var><span class="samp">; make 139dvi</span>. You will need to have <span class="command">texi2dvi</span> (version at least 4.2) 140and TeX installed. This creates a number of <span class="file">.dvi</span> files in 141subdirectories of <var>objdir</var>; these may be converted for 142printing with programs such as <span class="command">dvips</span>. You can also 143<a href="http://www.gnu.org/order/order.html">buy printed manuals from the Free Software Foundation</a>, though such manuals may not be for the most 144recent version of GCC. 145 146 <p><hr /> 147<p><a href="./index.html">Return to the GCC Installation page</a> 148 149<!-- ***Binaries**************************************************************** --> 150<!-- ***Specific**************************************************************** --> 151<!-- ***Old documentation****************************************************** --> 152<!-- ***GFDL******************************************************************** --> 153<!-- *************************************************************************** --> 154<!-- Part 6 The End of the Document --> 155</body></html> 156 157