mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-31 12:32:13 +08:00
5628618eb9
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@832 af4574ff-66df-0310-9fd7-8a98e5e911e0
30 lines
1.0 KiB
XML
30 lines
1.0 KiB
XML
<sect2>
|
|
<title>Installation of gnat</title>
|
|
|
|
<para>Install gnat by running the following commands:</para>
|
|
|
|
<para><screen><userinput>./doconfig</userinput></screen></para>
|
|
|
|
<para>The above script will ask you how and where you would like to install
|
|
gnat. To avoid conflicts with the system gcc, the package will be installed
|
|
in a separate directory, that can later be removed from the system.</para>
|
|
|
|
<para>In response to the questions asked by the doconfig script, enter
|
|
<userinput>3</userinput> in response to the first question
|
|
and <userinput>/opt/gnat</userinput> in response to the
|
|
second question.</para>
|
|
|
|
<para>To finish the install, run</para>
|
|
<para><screen><userinput>./doinstall</userinput></screen></para>
|
|
|
|
<para>The gnat compiler can be invoked by executing the gcc binary
|
|
installed by the above script. To avoid conflicts with the system
|
|
gcc, we will rename the gcc command.</para>
|
|
<para><screen><userinput>cd /opt/gnat/bin &&
|
|
mv gcc gnatgcc &&
|
|
cd real &&
|
|
mv gcc gnatgcc</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|