-   Red Hat (
-   -   G++ not found, but gcc is there... how to enable/install G++? (

tzotzo 08-22-2005 05:22 AM

G++ not found, but gcc is there... how to enable/install G++?
I am trying to install a C++ application, but it's configure file is complaining that it cannot find a g++/c++ compiler. I can't either!
But gcc is installed.
I have Redhat 9 on this server, or Linux 2.2-24 modified by Redhat.

How do I enable g++/c++? Is there some special gcc command, or do I have to install a whole new gcc?

thx in advance.

Nylex 08-22-2005 05:56 AM

You need to install the gcc-c++ package.

tzotzo 08-22-2005 11:03 AM

how do I do that on Redhat.... for other distro;s I've seen update tools, but no clue
as to how do install gcc-c++ for RH9.


Nylex 08-22-2005 11:08 AM

Do you have RH9 CDs? If so, it should be on there. I know there's a thing called "Add/Remove Packages" (or something like that) in RH9, but I can't remember exactly where. You need to find it and then look under "Development Tools". You should be able to select it there and then you'll be prompted for the CD, IIRC.

tzotzo 08-22-2005 11:10 AM

thanks. However, this is for a remote hosted server... I have no access to the machine, or the CDs.
I need to find some commmand or RPM package to do this...

Nylex 08-22-2005 11:18 AM

Oh :(. Have a look on then.

tzotzo 08-23-2005 10:34 AM

found the solution.

In my case, the base GCC package was installed on the server, just not g++/c++. I went to and working my way down the ftp dir tree, I found the RH9 rpm package for gcc-g++. But first, the package had dependencies on libstdc++ and libstdc++-dev, both of which had RPMs. So first I installed the two lib RPMs, and then I installed the gcc-g++ RPM, and all was well... my C++ program compiled OK.

This path is far easier than trying to build from the gcc-g++ source code package from GNU... MUCH easier.

Nylex 08-23-2005 10:37 AM

Good :).

All times are GMT -5. The time now is 08:40 PM.