comp.lang.ada
 help / color / mirror / Atom feed
From: d96andgi@dtek.chalmers.se (Anders Gidenstam)
Subject: Re: Gnat 3.10p (.rpm version) + Redhat 5.2
Date: 1998/12/13
Date: 1998-12-13T00:00:00+00:00	[thread overview]
Message-ID: <751co5$2rt$1@nyheter.chalmers.se> (raw)
In-Reply-To: 36739635.336509@news.wantree.com.au

In article <36739635.336509@news.wantree.com.au>,
	party@wantree.com.au (_Gareth_) writes:
>The README.redhat file gave two commands (such as "export
>path=....").... Do I simply copy & paste these to the command prompt
>and hit enter?

I've put these lines in my ~/.bash_profile to set up the paths for
gnat:

# For the GNU Ada compiler
GCC_EXEC_PREFIX=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/
export GCC_EXEC_PREFIX
ADA_INCLUDE_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/adainclude
export ADA_INCLUDE_PATH
ADA_OBJECTS_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/adalib
export ADA_OBJECTS_PATH
LD_RUN_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/adalib
export LD_RUN_PATH
C_INCLUDE_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/include
export C_INCLUDE_PATH

The down side of this approach is that my account always use the old gcc
that gnat uses, ie I can't compile C programs since some headerfiles are 
elsewhere.
You should not do this on the root account since it's not a good idea
to compile kernels with the old gcc.
 
/Anders

-- 
--------------------------------------------
"A well-written program is its own heaven; 
 a poorly-written program is its own hell."
  - The Tao of Programming 





  reply	other threads:[~1998-12-13  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-13  0:00 Gnat 3.10p (.rpm version) + Redhat 5.2 = Not working (I'm new to this) _Gareth_
1998-12-13  0:00 ` Anders Gidenstam [this message]
1998-12-14  0:00   ` Gnat 3.10p (.rpm version) + Redhat 5.2 _Gareth_
1998-12-14  0:00     ` _Gareth_
1998-12-14  0:00     ` Andreas Jungmaier
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox