* gnat 3.11p problem on redhat 5.2 with egcs?
@ 1999-01-25 0:00 nabbasi
0 siblings, 0 replies; only message in thread
From: nabbasi @ 1999-01-25 0:00 UTC (permalink / raw)
I had this problem with installation of gnat 3.11p on
redhat 5.2.
(btw, an RPM package will be great to have, as I find the
original gnat installation to be confusing as always).
I installed gnat 3.11p, but now I get this error when I
try to use gcc:
[nasser@1Cust103 mycc]$ gcc t1.cc
gcc: installation problem, cannot exec `cc1plus': No such file or
directory
(but when the file extension is .c, gcc is happy, it is only
when the file is c++ file that it complains).
I have tried the 1 and second and third options of gnat
installation:
" There are basically 3 options for installation:
1) Install GNAT-specific files on top of an existing GCC 2.8.1
installation (must be in standard locations -- will likely
require root permission).
2) Install GCC C compiler and GNAT files in the standard GCC
locations.
(Note: This includes directories under /usr. On most
systems, this requires root permission).
3) Install GCC C compiler and GNAT files in non-standard locations
that you will specify."
Using option 1,2 above, gave the same error when I try to use gcc.
I suspect the problem might be becuase I have installed egcs on my
system sometime ago?
[nasser@1Cust103 mycc]$ rpm -qa | grep egcs
egcs-1.0.3a-14
egcs-c++-1.0.3a-14
egcs-g77-1.0.3a-14
egcs-objc-1.0.3a-14
(using option 3 above generated different problem !)
so, what I did is look for cc1plus file on my system, and found
one in:
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.29/cc1plus
so, I added the above to the path AFTER /usr/bin, and now it works.
(this seems like a hack to me to have to do this sort of thing).
not sure what is going on here. I have always found this whole
deal with gcc, g++, gnat using its own gcc, gcc 2.7.2.3, gcc 2.8,
egcs, etc.. etc.. very confusing mess, sometimes I wonder what
compiler is being used when I do something.
Nasser
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-01-25 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-25 0:00 gnat 3.11p problem on redhat 5.2 with egcs? nabbasi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox