> Runnin' RH5.1 on an AMD K6/233;
> Installed right out of the box!
> Executing "gcc hello.cc", my installation responds:
> gcc: installation problem, cannot exec 'cc1plus': No such file or
> If I change the code to C, and the filename to "hello.c", it compiles to
> an a.out, so this works fine.
RedHat ships two versions of GCC (220.127.116.11 and EGCS 1.0.3--). GCC 18.104.22.168 is
fairly ancient (about 3 years old). RedHat doesn't ship the C++ that went with
that version of GCC (the C++ language has changed much since then). The EGCS
release is much newer (1.1.1 is the current release, 1.0.3 is about 4-6 months
old), and includes an up to date version of C++. However, because GCC 22.214.171.124
is installed as /usr/bin/gcc, they installed it as /usr/bin/egcs instead. This
BTW is all documented in the RedHat documentation (at least it was for RedHat
5.2). So, assuming you loaded the egcs release, you just have to do:
egcs ... foo.cc
gcc ... foo.cc
or you could do:
g++ ... foo.cc
(using g++ includes the standard C++ libraries, wheras calling egcs/gcc means
you don't get the g++ libraries without adding them on the command line).
As to why ship two versions of GCC -- the 2.0.xx kernel doesn't build with EGCS
(the 2.1.xx and 2.2.0-prex kernels do build with EGCS) due to problems with asm
Michael Meissner, Cygnus Solutions (Massachusetts office)
4th floor, 955 Massachusetts Avenue, Cambridge, MA 02139, USA