2003-04-04 08:07:27 +08:00
|
|
|
<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
|
2003-04-08 05:14:53 +08:00
|
|
|
in a separate directory, that can later be removed from the system.</para>
|
2003-04-04 08:07:27 +08:00
|
|
|
|
|
|
|
<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>
|
2003-04-04 11:02:33 +08:00
|
|
|
<para><screen><userinput>cd /opt/gnat/bin &&
|
2003-04-04 08:07:27 +08:00
|
|
|
mv gcc gnatgcc &&
|
|
|
|
cd real &&
|
|
|
|
mv gcc gnatgcc</userinput></screen></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|