glfs/general/prog/gcc/gnat-inst.xml

30 lines
1.0 KiB
XML
Raw Normal View History

<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 &amp;&amp;
mv gcc gnatgcc &amp;&amp;
cd real &amp;&amp;
mv gcc gnatgcc</userinput></screen></para>
</sect2>