From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c5aca40f432280a3,start X-Google-Attributes: gid103376,public From: nabbasi@earthlink.net Subject: gnat 3.11p problem on redhat 5.2 with egcs? Date: 1999/01/25 Message-ID: <78ivef$bqn@drn.newsguy.com>#1/1 X-Deja-AN: 436892768 Organization: Newsguy News Service [http://www.newsguy.com] Newsgroups: comp.lang.ada Date: 1999-01-25T00:00:00+00:00 List-Id: 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