2003-04-04 08:07:27 +08:00
|
|
|
<sect2>
|
2003-08-31 06:48:04 +08:00
|
|
|
<title>Installation of <application>gnat</application></title>
|
2003-04-04 08:07:27 +08:00
|
|
|
|
2003-08-31 06:48:04 +08:00
|
|
|
<para>Install <application>gnat</application> by running the following commands:</para>
|
2003-04-04 08:07:27 +08:00
|
|
|
|
2003-08-31 06:48:04 +08:00
|
|
|
<screen><userinput><command>./doconfig</command></userinput></screen>
|
2003-04-04 08:07:27 +08:00
|
|
|
|
|
|
|
<para>The above script will ask you how and where you would like to install
|
2003-08-31 06:48:04 +08:00
|
|
|
<application>gnat</application>. To avoid conflicts with the system
|
|
|
|
<command>gcc</command>, 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
|
|
|
|
2003-08-31 06:48:04 +08:00
|
|
|
<para>In response to the questions asked by the
|
|
|
|
<command>doconfig</command> script, enter
|
2003-04-04 08:07:27 +08:00
|
|
|
<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>
|
2003-08-31 06:48:04 +08:00
|
|
|
<screen><userinput><command>./doinstall</command></userinput></screen>
|
|
|
|
|
|
|
|
<para>The <application>gnat</application> compiler can be invoked by
|
|
|
|
executing the <command>gcc</command> binary
|
|
|
|
installed by the above script. <!-- To avoid conflicts with the system
|
|
|
|
<command>gcc</command>, we will rename the <command>gcc</command>
|
|
|
|
command.--></para>
|
|
|
|
<!-- <screen><userinput><command>cd /opt/gnat/bin &&
|
2003-04-04 08:07:27 +08:00
|
|
|
mv gcc gnatgcc &&
|
|
|
|
cd real &&
|
2003-08-31 06:48:04 +08:00
|
|
|
mv gcc gnatgcc</command></userinput></screen> -->
|
2003-04-04 08:07:27 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|