/[gentoo]/xml/htdocs/doc/en/new-upgrade-to-gentoo-1.4.xml
Gentoo

Diff of /xml/htdocs/doc/en/new-upgrade-to-gentoo-1.4.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
84 designed to have multiple versions of GCC installed. You must 84 designed to have multiple versions of GCC installed. You must
85 therefore upgrade GCC to at least version 2.95.3-r8. This 85 therefore upgrade GCC to at least version 2.95.3-r8. This
86 will also have the beneficial side-effect of installing the 86 will also have the beneficial side-effect of installing the
87 <c>gcc-config</c> package on your system, which can be used to 87 <c>gcc-config</c> package on your system, which can be used to
88 switch back and forth between various installed versions of 88 switch back and forth between various installed versions of
89 GCC.</p> 89 GCC.</p>
90 90
91 <pre> 91 <pre>
92# <i>emerge -u gcc</i> 92# <i>emerge -u gcc</i>
93</pre> 93</pre>
94 94
95 <p>You can now check to see if gcc-config is working properly:</p> 95 <p>You can now check to see if gcc-config is working properly:</p>
96 <pre> 96 <pre>
97# <c>gcc-config --get-current-profile</c> 97# <c>gcc-config --get-current-profile</c>
98</pre> 98</pre>
99 <p>This should return i686-pc-linux-gnu-2.95.3 on most systems. Older systems may return i586-pc-linux-gnu-2.95.3.</p> 99 <p>This should return i686-pc-linux-gnu-2.95.3 on most x86 systems. Older systems may return i586-pc-linux-gnu-2.95.3.</p>
100 </body> 100 </body>
101 </section> 101 </section>
102 <section> 102 <section>
103 <title>Installing GCC 3</title> 103 <title>Installing GCC 3</title>
104 <body> 104 <body>
105 <p>Now you can install a newer version of GCC without damaging 105 <p>Now you can install a newer version of GCC without damaging
106 your current compiler. Look in 106 your current compiler. Look in
107 <path>/usr/portage/sys-devel/gcc</path> for a version of the 107 <path>/usr/portage/sys-devel/gcc</path> for a version of the
108 GCC ebuild that is at least 3.2.1-r6. Choose the highest 108 GCC ebuild that is at least 3.2.1-r6. Choose the highest
109 version that is marked stable for your architecture. To see 109 version that is marked stable for your architecture. To see
110 if an ebuild is considered stable for your architecture, look 110 if an ebuild is considered stable for your architecture, look
111 for the KEYWORDS line in the ebuild file. If it has your 111 for the KEYWORDS line in the ebuild file. If it has your
112 architecture listed without a ~ in front of it, it is 112 architecture listed without a ~ in front of it, it is
113 considered stable. Assuming 3.2.2 is the most current stable 113 considered stable. Assuming 3.2.2 is the most current stable
114 version, then issue the following command:</p> 114 version, then issue the following command:</p>
115<pre> 115<pre>
116# <i>emerge /usr/portage/sys-apps/gcc/gcc-3.2.2.ebuild</i> 116# <i>emerge /usr/portage/sys-devel/gcc/gcc-3.2.2.ebuild</i>
117</pre> 117</pre>
118 </body> 118 </body>
119 </section> 119 </section>
120 <section> 120 <section>
121 <title>Changing profiles</title> 121 <title>Changing profiles</title>
122 <body> 122 <body>
123 <p>Now you need to change two sets of profiles: your 123 <p>Now you need to change two sets of profiles: your
124 gcc-config profile and your Portage profile.</p> 124 gcc-config profile and your Portage profile.</p>
125 <pre> 125 <pre>
126# <i>cd /etc</i> 126# <i>cd /etc</i>
127# <i>rm make.profile</i> 127# <i>rm make.profile</i>
128# <i>ln -s ../usr/portage/profiles/default-x86-1.4 make.profile</i> <codenote>Replace "x86" with your architecture</codenote> 128# <i>ln -s ../usr/portage/profiles/default-x86-1.4 make.profile</i> <codenote>Replace "x86" with your architecture</codenote>
129</pre> 129</pre>
130 130
131 <pre> 131 <pre>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20